exofs: check for allocation failure in uri_store()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Wed, 8 Aug 2012 17:02:37 +0000 (21:02 +0400)
committerBoaz Harrosh <bharrosh@panasas.com>
Sun, 12 Aug 2012 18:54:44 +0000 (21:54 +0300)
commitb8017d2957fb0ebf0c2aa91d48f2465f6f799738
tree10910f00c4f4e4fa8ad00a64ba3e8e181900418c
parent0d7614f09c1ebdbaa1599a5aba7593f147bf96ee
exofs: check for allocation failure in uri_store()

There is no memory allocation failure check in uri_store().
That can lead to NULL pointer dereference.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
fs/exofs/sys.c