diff options
author | Ming Lei <ming.lei@canonical.com> | 2012-10-09 06:01:02 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-10-22 17:37:17 +0200 |
commit | 253c9240ee09fd2a05d315ea44ac037a893d8981 (patch) | |
tree | 51694cfbb6d5f4c74e32eb19eb0ee6f5f48e0bb4 /drivers/scsi/mac_esp.c | |
parent | firmware loader: cancel uncache work before caching firmware (diff) | |
download | linux-253c9240ee09fd2a05d315ea44ac037a893d8981.tar.xz linux-253c9240ee09fd2a05d315ea44ac037a893d8981.zip |
firmware loader: fix one reqeust_firmware race
Several loading requests may be pending on one same
firmware buf, and this patch moves fw_map_pages_buf()
before complete_all(&fw_buf->completion) and let all
requests see the mapped 'buf->data' once the loading
is completed.
Signed-off-by: Ming Lei <ming.lei@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/scsi/mac_esp.c')
0 files changed, 0 insertions, 0 deletions