diff options
author | Jason Conti <jason.conti@gmail.com> | 2011-04-07 21:09:57 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-05-09 16:04:34 -0700 |
commit | b5f57c39981387fde6e0ebd123a3446a6683bd4e (patch) | |
tree | 796970e98c41ccb192352e2b578f10a0cfd17b82 /arch | |
parent | 3984c935c54a61eb6d12bcde228d9d5814f53f19 (diff) | |
download | lwn-b5f57c39981387fde6e0ebd123a3446a6683bd4e.tar.gz lwn-b5f57c39981387fde6e0ebd123a3446a6683bd4e.zip |
p54: Initialize extra_len in p54_tx_80211
commit a6756da9eace8b4af73e9dea43f1fc2889224c94 upstream.
This patch fixes a very serious off-by-one bug in
the driver, which could leave the device in an
unresponsive state.
The problem was that the extra_len variable [used to
reserve extra scratch buffer space for the firmware]
was left uninitialized. Because p54_assign_address
later needs the value to reserve additional space,
the resulting frame could be to big for the small
device's memory window and everything would
immediately come to a grinding halt.
Reference: https://bugs.launchpad.net/bugs/722185
Acked-by: Christian Lamparter <chunkeey@googlemail.com>
Signed-off-by: Jason Conti <jason.conti@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions