firmware: send -EINTR on signal abort on fallback mechanism
authorLuis R. Rodriguez <mcgrof@kernel.org>
Thu, 20 Jul 2017 20:13:39 +0000 (13:13 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Aug 2017 20:58:41 +0000 (13:58 -0700)
commit76098b36b5db1a509e5af94128b08f950692c7f8
treed66801f5a1e762628a7732f34af4eb955732d99f
parent0d1f417eee8ad0687afb90eab282614eecce1a13
firmware: send -EINTR on signal abort on fallback mechanism

Right now we send -EAGAIN to a syfs write which got interrupted.
Userspace can't tell what happened though, send -EINTR if we
were killed due to a signal so userspace can tell things apart.

This is only applicable to the fallback mechanism.

Reported-by: Martin Fuzzey <mfuzzey@parkeon.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/firmware_class.c