firmware_loader: abort request if wait_for_completion is interrupted
authorMing Lei <ming.lei@canonical.com>
Mon, 12 Jan 2015 16:01:35 +0000 (00:01 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Feb 2015 23:33:10 +0000 (15:33 -0800)
commit0cb64249ca50033ec22e63582837f94202c63d9f
tree9f186d01538ae38afd325e9a64593c158db8a3a6
parent3c1556b287b89686fc7b4a210b82174938bb8a02
firmware_loader: abort request if wait_for_completion is interrupted

If current request is interrupted by signal, such as 'ctrl + c',
this request has to be aborted for the following reasons:

- the buf need to be removed from pending list
- same requests from other contexts need to be completed

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