From: Stephen Hemminger Date: Fri, 20 Mar 2009 19:35:33 +0000 (+0000) Subject: irda: net_device_ops ioctl fix X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=92bcd4fe9a63e8785a4f6ba4262ee601c271a70b;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git irda: net_device_ops ioctl fix Need to reference net_device_ops not old pointer. Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller --- diff --git a/net/irda/irda_device.c b/net/irda/irda_device.c index ea319e3ddc1..bf92e147344 100644 --- a/net/irda/irda_device.c +++ b/net/irda/irda_device.c @@ -149,13 +149,14 @@ int irda_device_is_receiving(struct net_device *dev) IRDA_DEBUG(2, "%s()\n", __func__); - if (!dev->do_ioctl) { + if (!dev->netdev_ops->ndo_do_ioctl) { IRDA_ERROR("%s: do_ioctl not impl. by device driver\n", __func__); return -1; } - ret = dev->do_ioctl(dev, (struct ifreq *) &req, SIOCGRECEIVING); + ret = (dev->netdev_ops->ndo_do_ioctl)(dev, (struct ifreq *) &req, + SIOCGRECEIVING); if (ret < 0) return ret;