Steve Glendinning eed9a72914 smsc95xx: fix suspend buffer overflow
This patch fixes a buffer overflow introduced by bbd9f9e, where
the filter_mask array is accessed beyond its bounds.

Updated to also add a check for kzalloc failure, as reported by
Bjorn Mork and Joe Perches.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Steve Glendinning <steve.glendinning@shawell.net>
Cc: Bjorn Mork <bjorn@mork.no>
Cc: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-11-30 12:27:20 -05:00
..
2012-11-22 09:14:54 -10:00
2012-11-23 14:32:55 +01:00
2012-10-07 20:55:16 +09:00
2012-10-30 10:05:51 +01:00
2012-11-30 12:10:57 -05:00
2012-11-23 12:11:13 -10:00
2012-10-10 20:15:24 +09:00
2012-11-26 17:41:24 -08:00
2012-11-30 12:27:20 -05:00
2012-10-17 15:53:03 -05:00
2012-10-09 16:11:46 +09:00
2012-10-10 20:15:24 +09:00
2012-11-16 14:33:04 -08:00
2012-11-19 14:19:00 -05:00
2012-10-28 11:13:54 -07:00
2012-10-29 15:30:37 -04:00
2012-11-22 09:14:54 -10:00
2012-11-23 12:01:02 -10:00
2012-11-20 18:52:01 -10:00
2012-10-01 18:46:13 -07:00
2012-10-16 18:07:12 -07:00