]> err.no Git - linux-2.6/commit
[PATCH] request_firmware(): avoid race conditions
authorStanislaw W. Gruszka <stf_xl@wp.pl>
Wed, 29 Jun 2005 03:44:51 +0000 (20:44 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 29 Jun 2005 04:20:30 +0000 (21:20 -0700)
commitb92eac01c3c6ad5dab5c74d3bc32ac8e9bf4dae7
tree23d8b84caeee73709f6a6837f773ed4b4be84444
parentbcc8ca09920755520ba8a1e2d9f72fe8ff892643
[PATCH] request_firmware(): avoid race conditions

Avoid race occurs when some process have open file descriptor for class
device attributes and already firmware allocated memory are freed.  Don't
allow negative loading timeout.

Signed-off-by: Stanislaw W. Gruszka <stf_xl@wp.pl>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/base/firmware_class.c