summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorRupesh Gujare <rupesh.gujare@atmel.com>2013-08-28 12:43:15 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-08-28 15:18:40 -0700
commitb93d85f007177076c07acd8bf249dc466a977260 (patch)
tree050591272979adf6ce82a4b3ff8216186ac81fc6 /drivers
parentbe5e5926522f9f03ebec4124f0034d3928872c8c (diff)
downloadop-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.c2
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) {
OpenPOWER on IntegriCloud