]> git.hungrycats.org Git - linux/commit
[PATCH] request_firmware(): more misc fixes
authorAndrew Morton <akpm@osdl.org>
Thu, 26 Feb 2004 00:23:51 +0000 (16:23 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 26 Feb 2004 00:23:51 +0000 (16:23 -0800)
commitb09697149709ef87e1fd2964e9cd629841f1fe26
tree385485ef8c0d0a3fbd65e53e77af90efe0712158
parent6a2ea2b83961777d38f871ef4328fc72162512c6
[PATCH] request_firmware(): more misc fixes

From: Manuel Estrada Sainz <ranty@ranty.pantax.net>

Based on patch and suggestions from Dmitry Torokhov

- Take advantage of strlcpy.

- Extra error logging.

- Use struct coping instead of memcpy.

- Put all aborting code in a single place, and fully abort if
  fw_realloc_buffer fails.

- Abort on unexpected 'loading' values.
drivers/base/firmware_class.c