diff options
Diffstat (limited to 'drivers/net/can/dev.c')
-rw-r--r-- | drivers/net/can/dev.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/can/dev.c b/drivers/net/can/dev.c index 84ad2b44377c..0c5c745cda4c 100644 --- a/drivers/net/can/dev.c +++ b/drivers/net/can/dev.c @@ -665,6 +665,9 @@ static int can_changelink(struct net_device *dev, } } + if (!data) + return 0; + if (data[IFLA_CAN_CTRLMODE]) { struct can_ctrlmode *cm; |