rt2x00: Don't leak mem in error path of rt2x00lib_request_firmware()
authorJesper Juhl <jj@chaosbits.net>
Mon, 10 Jan 2011 23:47:44 +0000 (00:47 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 13 Jan 2011 20:46:45 +0000 (15:46 -0500)
commitccbd4d412dde4b7e858159e5cc8ba7ee4a6cac07
tree1c711402283c1ff21bd35d44aa8b49836ad71f6b
parent35b3ac470b982ded560e1b2ec9206a8d186c3459
rt2x00: Don't leak mem in error path of rt2x00lib_request_firmware()

We need to release_firmware() in order not to leak memory.

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Acked-by: Ivo van Doorn <IvDoorn@gmail.com>
Acked-by: Pekka Enberg <penberg@kernel.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2x00firmware.c