diff for duplicates of <e12da517-36fb-2247-e9b4-488708d6cda7@users.sourceforge.net> diff --git a/a/1.txt b/N1/1.txt index 631244e..bd12629 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -6,7 +6,7 @@ Content-Transfer-Encoding: 8bit The script "checkpatch.pl" pointed information out like the following. -Comparison to NULL could be written !… +Comparison to NULL could be written !… Thus fix affected source code places. @@ -23,24 +23,19 @@ index c9533b21942b..f6915f257486 100644 } newnode = kmalloc(sizeof(*newnode), GFP_ATOMIC); -- if (newnode = NULL) { +- if (newnode == NULL) { + if (!newnode) { rc = -ENOMEM; goto out; } @@ -98,7 +98,7 @@ static struct context *sidtab_search_core(struct sidtab *s, u32 sid, int force) - if (force && cur && sid = cur->sid && cur->context.len) + if (force && cur && sid == cur->sid && cur->context.len) return &cur->context; -- if (cur = NULL || sid != cur->sid || cur->context.len) { +- if (cur == NULL || sid != cur->sid || cur->context.len) { + if (!cur || sid != cur->sid || cur->context.len) { /* Remap invalid SIDs to the unlabeled SID. */ sid = SECINITSID_UNLABELED; hvalue = SIDTAB_HASH(sid); -- 2.11.0 - --- -To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in -the body of a message to majordomo@vger.kernel.org -More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/a/content_digest b/N1/content_digest index d8c1232..be94eab 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,7 +1,7 @@ "ref\0ca34123f-ced6-d2bc-363b-690858618827@users.sourceforge.net\0" "From\0SF Markus Elfring <elfring@users.sourceforge.net>\0" "Subject\0[PATCH 44/46] selinux: Adjust two checks for null pointers\0" - "Date\0Sun, 15 Jan 2017 15:44:04 +0000\0" + "Date\0Sun, 15 Jan 2017 16:44:04 +0100\0" "To\0linux-security-module@vger.kernel.org" selinux@tycho.nsa.gov Eric Paris <eparis@parisplace.org> @@ -22,7 +22,7 @@ "\n" "The script \"checkpatch.pl\" pointed information out like the following.\n" "\n" - "Comparison to NULL could be written !\303\242\342\202\254\302\246\n" + "Comparison to NULL could be written !\342\200\246\n" "\n" "Thus fix affected source code places.\n" "\n" @@ -39,26 +39,21 @@ " \t}\n" " \n" " \tnewnode = kmalloc(sizeof(*newnode), GFP_ATOMIC);\n" - "-\tif (newnode = NULL) {\n" + "-\tif (newnode == NULL) {\n" "+\tif (!newnode) {\n" " \t\trc = -ENOMEM;\n" " \t\tgoto out;\n" " \t}\n" "@@ -98,7 +98,7 @@ static struct context *sidtab_search_core(struct sidtab *s, u32 sid, int force)\n" - " \tif (force && cur && sid = cur->sid && cur->context.len)\n" + " \tif (force && cur && sid == cur->sid && cur->context.len)\n" " \t\treturn &cur->context;\n" " \n" - "-\tif (cur = NULL || sid != cur->sid || cur->context.len) {\n" + "-\tif (cur == NULL || sid != cur->sid || cur->context.len) {\n" "+\tif (!cur || sid != cur->sid || cur->context.len) {\n" " \t\t/* Remap invalid SIDs to the unlabeled SID. */\n" " \t\tsid = SECINITSID_UNLABELED;\n" " \t\thvalue = SIDTAB_HASH(sid);\n" "-- \n" - "2.11.0\n" - "\n" - "--\n" - "To unsubscribe from this list: send the line \"unsubscribe kernel-janitors\" in\n" - "the body of a message to majordomo@vger.kernel.org\n" - More majordomo info at http://vger.kernel.org/majordomo-info.html + 2.11.0 -0429c96d463542345e8bb91408da86ee4216b9ee157182c74744edf1a5b5f302 +1493ae92a3dfb3a3a7a7b6ba802e0213a1c2c3a76165d8d1422465722ce1ab65
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.