diff options
Diffstat (limited to 'backport/compat/compat-2.6.29.c')
-rw-r--r-- | backport/compat/compat-2.6.29.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/backport/compat/compat-2.6.29.c b/backport/compat/compat-2.6.29.c index d216407c..65b45f8d 100644 --- a/backport/compat/compat-2.6.29.c +++ b/backport/compat/compat-2.6.29.c @@ -21,6 +21,9 @@ void netdev_attach_ops(struct net_device *dev, const struct net_device_ops *ops) { + if (!ops) + return; + dev->open = ops->ndo_open; dev->init = ops->ndo_init; dev->stop = ops->ndo_stop; |