]> git.karo-electronics.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 14 Apr 2011 23:53:29 +0000 (16:53 -0700)
commit5cb4b8544380d9d776737418aedd871ff5403adb
treecd6644209ce968d71ce50e62363db524cb4266c8
parentb7236edfb8caffe3d9348999e13c972666e96b44
UBIFS: fix oops on error path in read_pnode

commit 54acbaaa523ca0bd284a18f67ad213c379679e86 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/ubifs/lpt.c