diff options
author | Steve Glendinning <steve.glendinning@shawell.net> | 2012-11-30 06:55:48 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-11-30 18:27:20 +0100 |
commit | eed9a72914a2b2737a0d91b80579f878999574ef (patch) | |
tree | 134cb904d6fe8a161ba136f1f5d3d81137a63855 /lib/kstrtox.c | |
parent | smsc75xx: expand check_ macros (diff) | |
download | linux-eed9a72914a2b2737a0d91b80579f878999574ef.tar.xz linux-eed9a72914a2b2737a0d91b80579f878999574ef.zip |
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>
Diffstat (limited to 'lib/kstrtox.c')
0 files changed, 0 insertions, 0 deletions