Skip to contentSkip to conversation

+ block-support-embedded-device-command-line-partition-fix.patch added to -mm tree

PATCH [email protected] 1 participant 1 message Aug 23, 2013 Block layer

lore
Share & tools
lore
#0 lore raw

Subject: + block-support-embedded-device-command-line-partition-fix.patch added to -mm tree
To: [email protected],[email protected]
From: [email protected]
Date: Fri, 23 Aug 2013 15:36:18 -0700

The patch titled
Subject: block: fix error return code in parse_parts()
has been added to the -mm tree. Its filename is
block-support-embedded-device-command-line-partition-fix.patch

This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/block-support-embedded-device-command-line-partition-fix.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/block-support-embedded-device-command-line-partition-fix.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: Wei Yongjun <[email protected]>
Subject: block: fix error return code in parse_parts()

Fix to return -EINVAL in the parts parse error handling case instead of 0(may overwrite to 0 by parse_subpart()), as done elsewhere in this function.

---

 block/cmdline-parser.c |    1 +
 1 file changed, 1 insertion(+)
block/cmdline-parser.c renamed from block/cmdline-parser.c~block-support-embedded-device-command-line-partition-fix +1 -0
diff -puN block/cmdline-parser.c~block-support-embedded-device-command-line-partition-fix block/cmdline-parser.c
@@ -135,6 +135,7 @@ static int parse_parts(struct cmdline_pa
 
 	if (!newparts->subpart) {
 		pr_warn("cmdline partition has no valid partition.");
+		ret = -EINVAL;
 		goto fail;
 	}
 

_

Patches currently in -mm which might be from [email protected] are

origin.patch block-support-embedded-device-command-line-partition-fix.patch mm-memory-hotplug-enable-memory-hotplug-to-handle-hugepage-fix.patch linux-next.patch