]> bbs.cooldavid.org Git - net-next-2.6.git/commit
UBI: fix kmem_cache_free on error patch
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Mon, 8 Jun 2009 16:28:18 +0000 (19:28 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Wed, 10 Jun 2009 13:13:27 +0000 (16:13 +0300)
commit21d08bbcb19d9cdef8ab5b584f25b50d842068e9
treea50210d1fe832fa9273483a6f4ba42102d8c3828
parent52b605d107de72c1d3385a3df972e79fb5befa4c
UBI: fix kmem_cache_free on error patch

'kmem_cache_free()' oopeses if NULL is passed, and there is
one error-path place where UBI may call it with NULL object.
This problem was pointed to by Adrian Hunter.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
drivers/mtd/ubi/wl.c