[WAN]: fix drivers/net/wan/lmc/ compilation
Signed-off-by: Adrian Bunk <bunk@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
e403149c92
commit
5c41542bde
@ -234,7 +234,7 @@ int lmc_ioctl (struct net_device *dev, struct ifreq *ifr, int cmd) /*fold00*/
|
|||||||
sc->lmc_xinfo.Magic1 = 0xDEADBEEF;
|
sc->lmc_xinfo.Magic1 = 0xDEADBEEF;
|
||||||
|
|
||||||
if (copy_to_user(ifr->ifr_data, &sc->lmc_xinfo,
|
if (copy_to_user(ifr->ifr_data, &sc->lmc_xinfo,
|
||||||
sizeof(struct lmc_xinfo))) {
|
sizeof(struct lmc_xinfo)))
|
||||||
ret = -EFAULT;
|
ret = -EFAULT;
|
||||||
else
|
else
|
||||||
ret = 0;
|
ret = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user