Skip to content
Commit 53942232 authored by Colin Ian King's avatar Colin Ian King Committed by Linus Torvalds
Browse files

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: default avatarColin Ian King <colin.king@canonical.com>
Acked-by: default avatarDavidlohr Bueso <davidlohr@hp.com>
Cc: Stanislav Kinsbursky <skinsbursky@parallels.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 1443176f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment