diff options
author | David S. Miller <davem@davemloft.net> | 2011-07-14 10:56:40 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-07-14 10:56:40 -0400 |
commit | 6a7ebdf2fd15417e87b4fd02ff411aeaca34da5f (patch) | |
tree | 86b15d8cd3e25c97b348b5a61bdb16c02726a480 /drivers/infiniband | |
parent | f6b72b6217f8c24f2a54988e58af858b4e66024d (diff) | |
parent | 51414d41084496aaefd06d7f19eb8206e8bfac2d (diff) |
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Conflicts:
net/bluetooth/l2cap_core.c
Diffstat (limited to 'drivers/infiniband')
-rw-r--r-- | drivers/infiniband/core/cm.c | 3 | ||||
-rw-r--r-- | drivers/infiniband/core/uverbs_main.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/drivers/infiniband/core/cm.c b/drivers/infiniband/core/cm.c index f62f52fb9ece..fc0f2bd9ca82 100644 --- a/drivers/infiniband/core/cm.c +++ b/drivers/infiniband/core/cm.c | |||
@@ -3641,7 +3641,8 @@ static struct kobj_type cm_port_obj_type = { | |||
3641 | 3641 | ||
3642 | static char *cm_devnode(struct device *dev, mode_t *mode) | 3642 | static char *cm_devnode(struct device *dev, mode_t *mode) |
3643 | { | 3643 | { |
3644 | *mode = 0666; | 3644 | if (mode) |
3645 | *mode = 0666; | ||
3645 | return kasprintf(GFP_KERNEL, "infiniband/%s", dev_name(dev)); | 3646 | return kasprintf(GFP_KERNEL, "infiniband/%s", dev_name(dev)); |
3646 | } | 3647 | } |
3647 | 3648 | ||
diff --git a/drivers/infiniband/core/uverbs_main.c b/drivers/infiniband/core/uverbs_main.c index e49a85f8a44d..56898b6578a4 100644 --- a/drivers/infiniband/core/uverbs_main.c +++ b/drivers/infiniband/core/uverbs_main.c | |||
@@ -826,7 +826,8 @@ static void ib_uverbs_remove_one(struct ib_device *device) | |||
826 | 826 | ||
827 | static char *uverbs_devnode(struct device *dev, mode_t *mode) | 827 | static char *uverbs_devnode(struct device *dev, mode_t *mode) |
828 | { | 828 | { |
829 | *mode = 0666; | 829 | if (mode) |
830 | *mode = 0666; | ||
830 | return kasprintf(GFP_KERNEL, "infiniband/%s", dev_name(dev)); | 831 | return kasprintf(GFP_KERNEL, "infiniband/%s", dev_name(dev)); |
831 | } | 832 | } |
832 | 833 | ||