diff options
| author | Andrew Morton <[email protected]> | 2012-03-28 21:42:52 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2012-03-29 00:14:37 +0000 |
| commit | 4c619aa0ba171c092a0ae5d969364deb82dbe371 (patch) | |
| tree | bc710f9a419f1f87712f5fa4c341330f7293c3d8 /lib/mpi/mpi-inv.c | |
| parent | nbd: rename the nbd_device variable from lo to nbd (diff) | |
| download | kernel-4c619aa0ba171c092a0ae5d969364deb82dbe371.tar.gz kernel-4c619aa0ba171c092a0ae5d969364deb82dbe371.zip | |
fs/proc/namespaces.c: prevent crash when ns_entries[] is empty
If CONFIG_NET_NS, CONFIG_UTS_NS and CONFIG_IPC_NS are disabled,
ns_entries[] becomes empty and things like
ns_entries[ARRAY_SIZE(ns_entries) - 1] will explode.
Reported-by: Richard Weinberger <[email protected]>
Cc: "Eric W. Biederman" <[email protected]>
Cc: Daniel Lezcano <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-inv.c')
0 files changed, 0 insertions, 0 deletions
