aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins
diff options
context:
space:
mode:
authorAnirudh Rayabharam <[email protected]>2021-07-28 14:21:06 +0530
committerGreg Kroah-Hartman <[email protected]>2021-07-29 17:22:11 +0200
commit0d6434e10b5377a006f6dd995c8fc5e2d82acddc (patch)
tree22861d9e88af524b15434b872539293368798bb5 /scripts/gcc-plugins
parent4d1014c1816c0395eca5d1d480f196a4c63119d0 (diff)
firmware_loader: use -ETIMEDOUT instead of -EAGAIN in fw_load_sysfs_fallback
The only motivation for using -EAGAIN in commit 0542ad88fbdd81bb ("firmware loader: Fix _request_firmware_load() return val for fw load abort") was to distinguish the error from -ENOMEM, and so there is no real reason in keeping it. -EAGAIN is typically used to tell the userspace to try something again and in this case re-using the sysfs loading interface cannot be retried when a timeout happens, so the return value is also bogus. -ETIMEDOUT is received when the wait times out and returning that is much more telling of what the reason for the failure was. So, just propagate that instead of returning -EAGAIN. Suggested-by: Luis Chamberlain <[email protected]> Reviewed-by: Shuah Khan <[email protected]> Acked-by: Luis Chamberlain <[email protected]> Signed-off-by: Anirudh Rayabharam <[email protected]> Cc: stable <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins')
0 files changed, 0 insertions, 0 deletions