]> git.karo-electronics.de Git - karo-tx-linux.git/commit
init: stricter checking of major:minor root= values
authorDan Ehrenberg <dehrenberg@chromium.org>
Tue, 10 Feb 2015 23:20:50 +0000 (15:20 -0800)
committerMike Snitzer <snitzer@redhat.com>
Tue, 31 Mar 2015 16:06:30 +0000 (12:06 -0400)
commite653ac658503ea9f1824b49d9b71b8dfe561be43
tree82fcccc6f45e52deac8d66ae000cc03d9ef327a0
parent7ca82d15e8e485fa217a7d7d1bcdf7629965498f
init: stricter checking of major:minor root= values

In the kernel command-line, previously, root=1:2jakshflaksjdhfa would
be accepted and interpreted just like root=1:2. This patch adds
stricter checking so that additional characters after major:minor are
rejected by root=.

The goal of this change is to help in unifying DM's interpretation of
its block device argument by using existing kernel code (name_to_dev_t).
But DM rejects malformed major:minor pairs, it seems reasonable for
root= to reject them as well.

Signed-off-by: Dan Ehrenberg <dehrenberg@chromium.org>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
init/do_mounts.c