From: Davidlohr Bueso Date: Tue, 30 Jun 2015 21:58:48 +0000 (-0700) Subject: ipc,sysv: return -EINVAL upon incorrect id/seqnum X-Git-Tag: omap-for-v4.2/fixes-rc1^2~53^2~26 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6157dbbfbf9d8e4a2b6d4e5ee35e864ab9ee8414;p=pandora-kernel.git ipc,sysv: return -EINVAL upon incorrect id/seqnum In ipc_obtain_object_check we return -EIDRM when a bogus sequence number is detected via ipc_checkid, while the ipc manpages state the following return codes for such errors: EIDRM points to a removed identifier. EINVAL Invalid value, or unaligned, etc. EIDRM should only be returned upon a RMID call (->deleted check), and thus return EINVAL for wrong seq. This difference in semantics has also caused real bugs, ie: https://bugzilla.redhat.com/show_bug.cgi?id=246509 Signed-off-by: Davidlohr Bueso Cc: Manfred Spraul Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed