summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorTony Battersby <tonyb@cybernetics.com>2009-04-03 01:58:26 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2009-04-03 04:05:01 +0200
commite562aebc6ccd4385cbbf24debe88ab4bb500c5b4 (patch)
treea9dee6eac97d75c688a84d5fe268b2e5a0b73e23 /firmware
parentcpu hotplug: remove unused cpuhotplug_mutex_lock() (diff)
downloadlinux-e562aebc6ccd4385cbbf24debe88ab4bb500c5b4.tar.xz
linux-e562aebc6ccd4385cbbf24debe88ab4bb500c5b4.zip
ipc: make shm_get_stat() more robust
shm_get_stat() assumes idr_find(&shm_ids(ns).ipcs_idr) returns "struct shmid_kernel *"; all other callers assume that it returns "struct kern_ipc_perm *". This works because "struct kern_ipc_perm" is currently the first member of "struct shmid_kernel", but it would be better to use container_of() to prevent future breakage. Signed-off-by: Tony Battersby <tonyb@cybernetics.com> Cc: Jiri Olsa <olsajiri@gmail.com> Cc: Jiri Kosina <jkosina@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'firmware')
0 files changed, 0 insertions, 0 deletions