commit | ea5736805190e912903c27c9f17c7a4341a405e9 | [log] [tgz] |
---|---|---|
author | Jean-Philippe Brucker <jean-philippe.brucker@arm.com> | Fri Feb 01 16:26:08 2019 +0000 |
committer | Will Deacon <will.deacon@arm.com> | Tue Feb 05 09:34:49 2019 +0000 |
tree | cc5eae5f498457b244da24775b0425f520bb5286 | |
parent | d23c808c6fc6132e812690648e14c0d6b0cbe273 [diff] |
arm64: kexec_file: handle empty command-line Calling strlen() on cmdline == NULL produces a kernel oops. Since having a NULL cmdline is valid, handle this case explicitly. Fixes: 52b2a8af7436 ("arm64: kexec_file: load initrd and device-tree") Signed-off-by: Jean-Philippe Brucker <jean-philippe.brucker@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com>