]> www.infradead.org Git - mtd-utils.git/commit
mtd-utils: nanddump: Dynamic buffer, increase pagesize/oobsize
authorBrian Norris <computersforpeace@gmail.com>
Sat, 16 Oct 2010 00:35:31 +0000 (17:35 -0700)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Sun, 17 Oct 2010 08:00:01 +0000 (11:00 +0300)
commit96a5eeaf754c34bf684b6957ab8479d8557b3e95
tree5c390c3949794d36aaa0f8b4a41f0d5114d85ebe
parent5ee3a1905e4ea852c936f92bc9b15b98032285ca
mtd-utils: nanddump: Dynamic buffer, increase pagesize/oobsize

The buffers used for dumping page and OOB data needed dynamic
allocation to help eliminate burdens for updating (i.e., every
time there's a new OOB size we don't have to increase the sizes).

Also, there is no need to check flash chips for "standard sizes."
With recent changes to the printing codebase, we should be able to
handle arbitrary sizes with no problem.

More exit operations are now necessary on program failure, so
"goto closeall" is used more liberally.

Also, common.h is included for the use of xmalloc.

[conflicts fixed by Artem]

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
nanddump.c