+ tools-testing-selftests-ipc-msgquec-handle-msgget-failure-return-correctly.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Subject: + tools-testing-selftests-ipc-msgquec-handle-msgget-failure-return-correctly.patch added to -mm tree
To: colin.king@xxxxxxxxxxxxx,davidlohr@xxxxxx,skinsbursky@xxxxxxxxxxxxx
From: akpm@xxxxxxxxxxxxxxxxxxxx
Date: Wed, 05 Mar 2014 12:19:18 -0800


The patch titled
     Subject: tools/testing/selftests/ipc/msgque.c: handle msgget failure return correctly
has been added to the -mm tree.  Its filename is
     tools-testing-selftests-ipc-msgquec-handle-msgget-failure-return-correctly.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/tools-testing-selftests-ipc-msgquec-handle-msgget-failure-return-correctly.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/tools-testing-selftests-ipc-msgquec-handle-msgget-failure-return-correctly.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Colin Ian King <colin.king@xxxxxxxxxxxxx>
Subject: 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@xxxxxxxxxxxxx>
Acked-by: Davidlohr Bueso <davidlohr@xxxxxx>
Cc: Stanislav Kinsbursky <skinsbursky@xxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 tools/testing/selftests/ipc/msgque.c |    1 +
 1 file changed, 1 insertion(+)

diff -puN tools/testing/selftests/ipc/msgque.c~tools-testing-selftests-ipc-msgquec-handle-msgget-failure-return-correctly tools/testing/selftests/ipc/msgque.c
--- a/tools/testing/selftests/ipc/msgque.c~tools-testing-selftests-ipc-msgquec-handle-msgget-failure-return-correctly
+++ a/tools/testing/selftests/ipc/msgque.c
@@ -201,6 +201,7 @@ int main(int argc, char **argv)
 
 	msgque.msq_id = msgget(msgque.key, IPC_CREAT | IPC_EXCL | 0666);
 	if (msgque.msq_id == -1) {
+		err = -errno;
 		printf("Can't create queue\n");
 		goto err_out;
 	}
_

Patches currently in -mm which might be from colin.king@xxxxxxxxxxxxx are

tools-testing-selftests-ipc-msgquec-handle-msgget-failure-return-correctly.patch
linux-next.patch

--
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux