aboutsummaryrefslogtreecommitdiffstats
path: root/net/ax25/af_ax25.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ax25/af_ax25.c')
-rw-r--r--net/ax25/af_ax25.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ax25/af_ax25.c b/net/ax25/af_ax25.c
index 8d13a8bca0e0..993e5c75e909 100644
--- a/net/ax25/af_ax25.c
+++ b/net/ax25/af_ax25.c
@@ -631,7 +631,7 @@ static int ax25_setsockopt(struct socket *sock, int level, int optname,
631 break; 631 break;
632 } 632 }
633 633
634 dev = dev_get_by_name(devname); 634 dev = dev_get_by_name(&init_net, devname);
635 if (dev == NULL) { 635 if (dev == NULL) {
636 res = -ENODEV; 636 res = -ENODEV;
637 break; 637 break;