git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland...
[safe/jmp/linux-2.6]
/
drivers
/
infiniband
/
core
/
cm.c
diff --git
a/drivers/infiniband/core/cm.c
b/drivers/infiniband/core/cm.c
index
fc73d6a
..
ad63b79
100644
(file)
--- a/
drivers/infiniband/core/cm.c
+++ b/
drivers/infiniband/core/cm.c
@@
-3694,7
+3694,7
@@
static void cm_add_one(struct ib_device *ib_device)
cm_dev->device = device_create(&cm_class, &ib_device->dev,
MKDEV(0, 0), NULL,
"%s", ib_device->name);
- if (
!cm_dev->device
) {
+ if (
IS_ERR(cm_dev->device)
) {
kfree(cm_dev);
return;
}