From: Lukasz Pawelczyk Date: Wed, 26 Nov 2014 14:31:07 +0000 (+0100) Subject: smack: fix logic in smack_inode_init_security function X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~113^2~10^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=68390ccf8b0a3470032f053d50379cfd49fbe952;p=pandora-kernel.git smack: fix logic in smack_inode_init_security function In principle if this function was called with "value" == NULL and "len" not NULL it could return different results for the "len" compared to a case where "name" was not NULL. This is a hypothetical case that does not exist in the kernel, but it's a logic bug nonetheless. Signed-off-by: Lukasz Pawelczyk --- Reading git-diff-tree failed