]> www.infradead.org Git - mtd-utils.git/commit
libmtd: make malloc failures fatal
authorMike Frysinger <vapier@gentoo.org>
Fri, 1 Oct 2010 17:13:10 +0000 (13:13 -0400)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Sat, 2 Oct 2010 14:19:44 +0000 (17:19 +0300)
commitb8bbd73bb5bd0b1f5f2c6a3441486d69a45cc79c
tree4b8ce33411f6be72e208e78c6a44d481fddc5e74
parent2e6f057227fb60465bd76876cf783ad56561930c
libmtd: make malloc failures fatal

This converts libmtd to the common xalloc helpers and in doing so, makes
memory allocation failures fatal rather than returning an error to the
caller.  I think this is acceptable behavior.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
lib/libmtd.c
lib/libmtd_legacy.c