From: Ahmed S. Darwish Date: Thu, 20 Mar 2008 00:00:51 +0000 (-0700) Subject: smack: do not dereference NULL ipc object X-Git-Tag: v2.6.25-rc7~84 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d252fb870aa9cd227c4beb1a226ecd434f57f28;p=pandora-kernel.git smack: do not dereference NULL ipc object In the SYSV ipc msgctl(),semctl(),shmctl() family, if the user passed *_INFO as the desired operation, no specific object is meant to be controlled and only system-wide information is returned. This leads to a NULL IPC object in the LSM hooks if the _INFO flag is given. Avoid dereferencing this NULL pointer in Smack ipc *ctl() methods. Signed-off-by: Ahmed S. Darwish Acked-by: Casey Schaufler Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed