[PATCH] fix leaks in request_firmware_nowait
authormatthieu castet <castet.matthieu@free.fr>
Mon, 14 Nov 2005 00:07:39 +0000 (16:07 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 14 Nov 2005 02:14:17 +0000 (18:14 -0800)
commit113fab1386f0093602d9f48b424b945cafd3db23
tree3d9f0853c2ce8ff846b5156ac91307f4107f3e8d
parentff6ed4063da39e6a30ce904005e4ed17385e2739
[PATCH] fix leaks in request_firmware_nowait

Wasn't checking return error and forgot to free in some case.

Signed-off-by: Matthieu CASTET <castet.matthieu@free.fr>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/base/firmware_class.c