mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 08:52:27 +00:00
fw_priv->buf is accessed in both request_firmware_load() and writing to sysfs file of 'loading' context, but not protected by 'fw_lock' entirely. The patch makes sure that access on 'fw_priv->buf' is protected by the lock. So fixes the double abort problem reported by nirinA raseliarison: http://lkml.org/lkml/2013/6/14/188 Reported-and-tested-by: nirinA raseliarison <[email protected]> Cc: Guenter Roeck <[email protected]> Cc: Bjorn Helgaas <[email protected]> Cc: stable <[email protected]> # 3.9 Signed-off-by: Ming Lei <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>