Merge tag 'rdma-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland...
[linux-2.6-block.git] / drivers / infiniband / hw / qib / qib_file_ops.c
index df3808a38381c26e066055c5fc3a1391e51362e2..b51a51486cb845479b0512dc2b9f31c1443f9649 100644 (file)
@@ -2288,7 +2288,7 @@ int qib_cdev_init(int minor, const char *name,
                goto err_cdev;
        }
 
-       device = device_create(qib_class, NULL, dev, NULL, name);
+       device = device_create(qib_class, NULL, dev, NULL, "%s", name);
        if (!IS_ERR(device))
                goto done;
        ret = PTR_ERR(device);