Staging: et131x: Fix Smatch Warning of Buffer Overflow
authorRashika Kheria <rashika.kheria@gmail.com>
Thu, 24 Oct 2013 10:54:51 +0000 (16:24 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Oct 2013 21:22:20 +0000 (14:22 -0700)
commit9c7bc37628d8edef821176fcd7872efd54358f50
treeeb7587bb2f23e3fb727de57acec3ad97852d4416
parent800df1a5b3cbb25615f37a2f80a38210a3e9db9b
Staging: et131x: Fix Smatch Warning of Buffer Overflow

This patch fixes the following Sparse Warning in et131x.c-

drivers/staging/et131x/et131x.c:2957 nic_send_packet() error: buffer overflow 'frags' 17 <= 21
drivers/staging/et131x/et131x.c:2959 nic_send_packet() warn: buffer overflow 'frags' 17 <= 21
drivers/staging/et131x/et131x.c:2961 nic_send_packet() error: buffer overflow 'frags' 17 <= 21

Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/et131x/et131x.c