diff options
| author | Goldwyn Rodrigues <[email protected]> | 2011-07-04 16:26:57 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2011-07-04 22:53:28 +0000 |
| commit | b2bc4782191cb574924a1d09f48083ea8b33a93b (patch) | |
| tree | e91ef7b6fb2869908ce1aa7372747687ad0b5ec3 /net/lapb | |
| parent | Merge branch 'pm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/rafa... (diff) | |
| download | kernel-b2bc4782191cb574924a1d09f48083ea8b33a93b.tar.gz kernel-b2bc4782191cb574924a1d09f48083ea8b33a93b.zip | |
RDMA: Check for NULL mode in .devnode methods
Commits 71c29bd5c235 ("IB/uverbs: Add devnode method to set path/mode")
and c3af0980ce01 ("IB: Add devnode methods to cm_class and umad_class")
added devnode methods that set the mode.
However, these methods don't check for a NULL mode, and so we get a
crash when unloading modules because devtmpfs_delete_node() calls
device_get_devnode() with mode == NULL.
Add the missing checks.
Signed-off-by: Goldwyn Rodrigues <[email protected]>
[ Also fix cm.c. - Roland ]
Signed-off-by: Roland Dreier <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/lapb')
0 files changed, 0 insertions, 0 deletions
