]> git.baikalelectronics.ru Git - kernel.git/commit
UBIFS: fix oops on error path in read_pnode
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Fri, 25 Mar 2011 17:09:54 +0000 (19:09 +0200)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Tue, 5 Apr 2011 07:40:31 +0000 (10:40 +0300)
commiteba1fd1eb21c4f299439edaaf5a1e7f7b5f9e324
treec6ed0d74270ef84bc605d71feaa09b0511ccece6
parent78a8e3be512ef5d25d101fea7e636e1132fbbdab
UBIFS: fix oops on error path in read_pnode

Thanks to coverity which spotted that UBIFS will oops if 'kmalloc()'
in 'read_pnode()' fails and we dereference a NULL 'pnode' pointer
when we 'goto out'.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Cc: stable@kernel.org
fs/ubifs/lpt.c