]> www.infradead.org Git - mtd-utils.git/commit
mtd-utils: nanddump: write requested length only
authorGary Bisson <bisson.gary@gmail.com>
Wed, 18 Dec 2013 01:03:06 +0000 (17:03 -0800)
committerRichard Weinberger <richard@nod.at>
Thu, 25 Aug 2016 13:22:07 +0000 (15:22 +0200)
commit76c64d6ca9e9258b74ec13d13496eb7ca872a288
tree994ff8ab700aff0b8a36c4f1adb2221945070417
parente4c8885bddac201ba0ef88560d6444f39e1ff870
mtd-utils: nanddump: write requested length only

nanddump was always writing a whole page of data into the output
discarding the length actually requested. This patch allows to
write only the remaining length if oob is omitted. In case oob
is needed, it makes sense to copy the entire page.

Signed-off-by: Richard Weinberger <richard@nod.at>
nand-utils/nanddump.c