From: Adrian Bunk Date: Tue, 30 Oct 2007 22:34:34 +0000 (-0700) Subject: [WAN]: fix drivers/net/wan/lmc/ compilation X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5c41542bdeaafe922a07bcdebc10d96a3b8ffeee;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git [WAN]: fix drivers/net/wan/lmc/ compilation Signed-off-by: Adrian Bunk Signed-off-by: David S. Miller --- diff --git a/drivers/net/wan/lmc/lmc_main.c b/drivers/net/wan/lmc/lmc_main.c index 64eb57893602..37c52e131750 100644 --- a/drivers/net/wan/lmc/lmc_main.c +++ b/drivers/net/wan/lmc/lmc_main.c @@ -234,7 +234,7 @@ int lmc_ioctl (struct net_device *dev, struct ifreq *ifr, int cmd) /*fold00*/ sc->lmc_xinfo.Magic1 = 0xDEADBEEF; if (copy_to_user(ifr->ifr_data, &sc->lmc_xinfo, - sizeof(struct lmc_xinfo))) { + sizeof(struct lmc_xinfo))) ret = -EFAULT; else ret = 0;