From: Kumar Amit Mehta Date: Mon, 26 Jan 2015 15:44:53 +0000 (+0100) Subject: staging: lustre: lustre: mdc: lproc_mdc.c: Fix for potential NULL pointer dereference X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~83^2~137 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c1f79c74e222000386f3950ed98d150e6009648b;p=pandora-kernel.git staging: lustre: lustre: mdc: lproc_mdc.c: Fix for potential NULL pointer dereference In mdc_kuc_write(), OBD_ALLOC(lh, len) may leave 'lh' to NULL as kmalloc may fail to allocate memory. This fix adds a check to avoid, dereferencing a NULL pointer. Signed-off-by: Kumar Amit Mehta Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed