mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 07:04:24 +00:00
staging: slicoss: use status in slic_ioctl
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 <sudip@vectorindia.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
de4772aef3
commit
4b8645d643
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue