original_kernel/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
..
Kconfig
Makefile net/ncsi: Add generic netlink family 2018-03-05 10:43:37 -05:00
internal.h net/ncsi: Refactor MAC, VLAN filters 2018-04-17 13:50:58 -04:00
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 net/ncsi: Add generic netlink family 2018-03-05 10:43:37 -05:00
ncsi-pkt.h
ncsi-rsp.c net/ncsi: prevent a couple array underflows 2018-05-17 16:27:39 -04:00