projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de4772a
)
staging: slicoss: use status in slic_ioctl
author
Sudip Mukherjee
<
[email protected]
>
Thu, 17 Sep 2015 16:44:34 +0000
(22:14 +0530)
committer
Greg Kroah-Hartman
<
[email protected]
>
Sat, 19 Sep 2015 02:53:51 +0000
(19:53 -0700)
In the ioctl function if we are not able to UP the link after setting
the new parameters then return an error code to the userspace.
Signed-off-by: Sudip Mukherjee <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/staging/slicoss/slicoss.c
patch
|
blob
|
history
diff --git
a/drivers/staging/slicoss/slicoss.c
b/drivers/staging/slicoss/slicoss.c
index fb663c8855449e86eeef5cfcf943f0b1a5873853..6ff0b838db79607c85cdd1d62e16c6c66629fab0 100644
(file)
--- a/
drivers/staging/slicoss/slicoss.c
+++ b/
drivers/staging/slicoss/slicoss.c
@@
-2624,7
+2624,8
@@
static int slic_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
else
duplex = 0;
slic_link_config(adapter, speed, duplex);
- slic_link_event_handler(adapter);
+ if (slic_link_event_handler(adapter))
+ return -EFAULT;
}
}
return 0;