]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
tools/testing/selftests/ipc/msgque.c: handle msgget failure return correctly
authorColin Ian King <colin.king@canonical.com>
Mon, 10 Mar 2014 22:49:50 +0000 (15:49 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 11 Mar 2014 00:26:21 +0000 (17:26 -0700)
commit53942232369ec317f77dc8c2d5a0637bb85a6e84
treeb07f0c80c30d502118dedd8adce61c0d63dda669
parent1443176fd6857744d6772e6a607d7d08f0f6afd9
tools/testing/selftests/ipc/msgque.c: handle msgget failure return correctly

A failed msgget causes the test to return an uninitialised value in ret.
Assign ret to -errno on error exit.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Davidlohr Bueso <davidlohr@hp.com>
Cc: Stanislav Kinsbursky <skinsbursky@parallels.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
tools/testing/selftests/ipc/msgque.c