diff options
author | Rupesh Gujare <rupesh.gujare@atmel.com> | 2013-08-28 12:43:15 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-08-28 15:18:40 -0700 |
commit | b93d85f007177076c07acd8bf249dc466a977260 (patch) | |
tree | 050591272979adf6ce82a4b3ff8216186ac81fc6 /drivers | |
parent | be5e5926522f9f03ebec4124f0034d3928872c8c (diff) | |
download | op-kernel-dev-b93d85f007177076c07acd8bf249dc466a977260.zip op-kernel-dev-b93d85f007177076c07acd8bf249dc466a977260.tar.gz |
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) { |