]> err.no Git - linux-2.6/commit
rt2x00: Don't use unitialized rxdesc->size
authorMattias Nissler <mattias.nissler@gmx.de>
Sun, 9 Mar 2008 21:41:22 +0000 (22:41 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 13 Mar 2008 20:02:34 +0000 (16:02 -0400)
commit2ae23854dc0af617d9a0e3ab51a0cc51485ebbf2
tree34f8ff7f1724a9aaaa3c6c0d048e483529f00df6
parent2d1be5b0d17134ddba65c752557b1f47c8009db2
rt2x00: Don't use unitialized rxdesc->size

rxdesc->size is unitialized before the desriptor has been read.
Move the truncation of the sk buffer to the moment all variables
have been initialized.

Signed-off-by: Mattias Nissler <mattias.nissler@gmx.de>
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2500usb.c
drivers/net/wireless/rt2x00/rt73usb.c