From: Paul Moore Date: Fri, 17 Nov 2006 22:38:50 +0000 (-0500) Subject: NetLabel: return the correct error for translated CIPSOv4 tags X-Git-Tag: v2.6.20-rc1~34^2~40^2~276 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9fade4bf8eed3db2fd1306968da4d51bc611aca3;p=pandora-kernel.git NetLabel: return the correct error for translated CIPSOv4 tags The CIPSOv4 translated tag #1 mapping does not always return the correct error code if the desired mapping does not exist; instead of returning -EPERM it returns -ENOSPC indicating that the buffer is not large enough to hold the translated value. This was caused by failing to check a specific error condition. This patch fixes this so that unknown mappings return -EPERM which is consistent with the rest of the related CIPSOv4 code. Signed-off-by: Paul Moore Signed-off-by: James Morris --- Reading git-diff-tree failed