]> git.baikalelectronics.ru Git - kernel.git/commit
rt2x00: Check for errors from skb_pad() calls
authorSeth Forshee <seth.forshee@canonical.com>
Mon, 14 Feb 2011 14:52:25 +0000 (08:52 -0600)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 14 Feb 2011 20:50:17 +0000 (15:50 -0500)
commit6fe89fc8a970c1259e9876df37a6757398ed23d0
tree169aca14bd1a3514452aeac5170214280937a6eb
parent91a21fb33a2c2de878176779a450124e3e7f3bf0
rt2x00: Check for errors from skb_pad() calls

Commit e6f310c ("rt2x00: Pad beacon to multiple of 32 bits")
added calls to skb_pad() without checking the return value,
which could cause problems if any of those calls does happen
to fail. Add checks to prevent this from happening.

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
Acked-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2800lib.c
drivers/net/wireless/rt2x00/rt61pci.c
drivers/net/wireless/rt2x00/rt73usb.c