From: Zahari Doychev Date: Tue, 10 Mar 2015 09:45:40 +0000 (+0100) Subject: drivers: base: fw: fix ret value when loading fw X-Git-Tag: omap-for-v4.1/fixes-rc1~166^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef518cc8aa4427043efe21cb2f0799be9cb1d74d;p=pandora-kernel.git drivers: base: fw: fix ret value when loading fw When using the user mode helper to load firmwares the function _request_firmware gets a positive return value from fw_load_from_user_helper and because of this the firmware buffer is not assigned. This happens only when the return value is zero. This patch fixes this problem in _request_firmware_load. When the completion is ready the return value is set to zero. Signed-off-by: Zahari Doychev Cc: Ming Lei Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed