staging: gasket: apex return error on sysfs show of missing attribute
authorTodd Poynor <toddpoynor@google.com>
Sat, 21 Jul 2018 13:35:01 +0000 (06:35 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Jul 2018 11:56:46 +0000 (13:56 +0200)
commitb0e66fb7ba060243f71f6871c988846d74bac0ac
tree957e49ae13cc5f42c1bf84ab65bb85c8d99aac76
parente2f00f0b9876387e38849e7b1338ac684a7a6562
staging: gasket: apex return error on sysfs show of missing attribute

Apex sysfs show function return -ENODEV if the attribute is not present,
rather than silently failing from the standpoint of the userspace
accessor.

Reported-by: Guenter Roeck <groeck@chromium.org>
Signed-off-by: Todd Poynor <toddpoynor@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gasket/apex_driver.c