summaryrefslogtreecommitdiff
path: root/fs/ext4
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2017-08-21 03:05:40 +0300
committerTom Rini <trini@konsulko.com>2017-08-26 21:56:13 +0300
commitbc028345acc44a4fe94fd0572ab0552bdfb7f810 (patch)
treedffabb67a38d87800381c45d5915bd9aa7e8d1d1 /fs/ext4
parent1e87f9ced4db17d2e06db5a9af6cd89ca680957a (diff)
downloadu-boot-bc028345acc44a4fe94fd0572ab0552bdfb7f810.tar.xz
mtdparts: Fix final outstanding issue reported by Coverity
As part of fixing the previously reported issues, it was missed that in the case of mtdparts_init() we need to make sure that tmp_ep is long enough to contain PARTITION_MAXLEN and a NULL termination. Then, to be sure the buffer is NULL terminated, zero the entire buffer rather than just ensuring the first character is NULL. Cc: Lothar Waßmann <LW@KARO-electronics.de> Cc: Maxime Ripard <maxime.ripard@free-electrons.com> Reported-by: Coverity (CID: 166329) Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'fs/ext4')
0 files changed, 0 insertions, 0 deletions