diff options
Diffstat (limited to 'drivers/infiniband')
-rw-r--r-- | drivers/infiniband/hw/cxgb3/cxio_hal.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/cxgb3/cxio_hal.c b/drivers/infiniband/hw/cxgb3/cxio_hal.c index beb2a381467f..eec6a30840ca 100644 --- a/drivers/infiniband/hw/cxgb3/cxio_hal.c +++ b/drivers/infiniband/hw/cxgb3/cxio_hal.c | |||
@@ -37,6 +37,7 @@ | |||
37 | #include <linux/spinlock.h> | 37 | #include <linux/spinlock.h> |
38 | #include <linux/pci.h> | 38 | #include <linux/pci.h> |
39 | #include <linux/dma-mapping.h> | 39 | #include <linux/dma-mapping.h> |
40 | #include <net/net_namespace.h> | ||
40 | 41 | ||
41 | #include "cxio_resource.h" | 42 | #include "cxio_resource.h" |
42 | #include "cxio_hal.h" | 43 | #include "cxio_hal.h" |
@@ -894,7 +895,7 @@ int cxio_rdev_open(struct cxio_rdev *rdev_p) | |||
894 | if (cxio_hal_find_rdev_by_name(rdev_p->dev_name)) { | 895 | if (cxio_hal_find_rdev_by_name(rdev_p->dev_name)) { |
895 | return -EBUSY; | 896 | return -EBUSY; |
896 | } | 897 | } |
897 | netdev_p = dev_get_by_name(rdev_p->dev_name); | 898 | netdev_p = dev_get_by_name(&init_net, rdev_p->dev_name); |
898 | if (!netdev_p) { | 899 | if (!netdev_p) { |
899 | return -EINVAL; | 900 | return -EINVAL; |
900 | } | 901 | } |