diff options
| author | Rafael J. Wysocki <[email protected]> | 2008-04-22 20:57:50 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2008-04-23 00:40:36 +0000 |
| commit | 29591b92e19f409d5ad4c099c2b7b5ea56f50dfa (patch) | |
| tree | 0e3625c691318934f97f384d0cac862b13b29719 /net/unix/af_unix.c | |
| parent | Relax check on adding children of suspended devices (diff) | |
| download | kernel-29591b92e19f409d5ad4c099c2b7b5ea56f50dfa.tar.gz kernel-29591b92e19f409d5ad4c099c2b7b5ea56f50dfa.zip | |
bus_remove_device: be more careful about incomplete initialization
Prevent bus_remove_device() from crashing if dev->knode_bus has not been
initialized before it's called.
This can happen if the device_add() ended up breaking out early due to
an error, for example.
Signed-off-by: Rafael J. Wysocki <[email protected]>
Acked-by: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
