]> git.baikalelectronics.ru Git - kernel.git/commit
staging: gasket: Return EBUSY on mapping create when already in use
authorTodd Poynor <toddpoynor@google.com>
Tue, 17 Jul 2018 20:56:47 +0000 (13:56 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jul 2018 09:39:47 +0000 (11:39 +0200)
commit1df1f06039729b16be2f6e5bc644b6a0ef331e0b
tree0d95d23276992845abfc16ebf029389557df9dd5
parent9f6a739ede98cfc65360fffddfc53b02f1c6a243
staging: gasket: Return EBUSY on mapping create when already in use

gasket_sysfs_create_mapping() return EBUSY if sysfs mapping already in
use, as a more appropriate error code than the current return of EINVAL,
which would indicate invalid parameters.

Signed-off-by: Zhongze Hu <frankhu@chromium.org>
Signed-off-by: Todd Poynor <toddpoynor@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gasket/gasket_sysfs.c