linux_dsm_epyc7002/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 net/ncsi: Resource management 2016-07-19 20:49:16 -07:00
Makefile net/ncsi: Add generic netlink family 2018-03-05 10:43:37 -05:00
ncsi-aen.c net/ncsi: Don't take any action on HNCDSC AEN 2017-12-18 14:50:11 -05:00
ncsi-cmd.c net/ncsi: Fix several packet definitions 2017-08-28 16:49:49 -07:00
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 net/ncsi: Fix several packet definitions 2017-08-28 16:49:49 -07:00
ncsi-rsp.c net/ncsi: prevent a couple array underflows 2018-05-17 16:27:39 -04:00