kernel_optimize_test/net/ncsi
Dan Carpenter 990a9d4975 net/ncsi: prevent a couple array underflows
We recently refactored this code and introduced a static checker
warning.  Smatch complains that if cmd->index is zero then we would
underflow the arrays.  That's obviously true.

The question is whether we prevent cmd->index from being zero at a
different level.  I've looked at the code and I don't immediately see
a check for that.

Fixes: 062b3e1b6d ("net/ncsi: Refactor MAC, VLAN filters")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-05-17 16:27:39 -04:00
..
internal.h net/ncsi: Refactor MAC, VLAN filters 2018-04-17 13:50:58 -04:00
Kconfig
Makefile
ncsi-aen.c
ncsi-cmd.c
ncsi-manage.c net/ncsi: Refactor MAC, VLAN filters 2018-04-17 13:50:58 -04:00
ncsi-netlink.c net/ncsi: Refactor MAC, VLAN filters 2018-04-17 13:50:58 -04:00
ncsi-netlink.h
ncsi-pkt.h
ncsi-rsp.c net/ncsi: prevent a couple array underflows 2018-05-17 16:27:39 -04:00