diff options
author | Rupesh Gujare <rupesh.gujare@atmel.com> | 2013-08-28 11:43:15 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-08-28 22:18:40 (GMT) |
commit | b93d85f007177076c07acd8bf249dc466a977260 (patch) | |
tree | 050591272979adf6ce82a4b3ff8216186ac81fc6 /drivers | |
parent | be5e5926522f9f03ebec4124f0034d3928872c8c (diff) | |
download | linux-b93d85f007177076c07acd8bf249dc466a977260.tar.xz |
staging: ozwpan: Change error number.
Incorrect error number was returned here (EPERM), ENXIO is more
appropriate.
Signed-off-by: Rupesh Gujare <rupesh.gujare@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/ozwpan/ozcdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/ozwpan/ozcdev.c b/drivers/staging/ozwpan/ozcdev.c index 03b41ee..50722ea 100644 --- a/drivers/staging/ozwpan/ozcdev.c +++ b/drivers/staging/ozwpan/ozcdev.c @@ -161,7 +161,7 @@ static ssize_t oz_cdev_write(struct file *filp, const char __user *buf, oz_pd_get(pd); spin_unlock_bh(&g_cdev.lock); if (pd == NULL) - return -1; + return -ENXIO; eb = &pd->elt_buff; ei = oz_elt_info_alloc(eb); if (ei == NULL) { |