firmware loader: fix firmware -ENOENT situations
authorMing Lei <ming.lei@canonical.com>
Mon, 20 Aug 2012 11:04:15 +0000 (19:04 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Sep 2012 21:46:16 +0000 (14:46 -0700)
commitef40bb1bd01738670bd567e3dce8e862f2b91bf3
tree076f18d361a06d3c303821b46823d3aed3b5744d
parent43f5e46c8e74046a969a3811d7760d1988a8f4bf
firmware loader: fix firmware -ENOENT situations

If the requested firmware image doesn't exist, firmware->priv
should be set for the later concurrent requests, otherwise
warning and oops will be triggered inside firmware_free_data().

Signed-off-by: Ming Lei <ming.lei@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/firmware_class.c