From: Patrick Farrell Date: Sun, 27 Apr 2014 17:06:25 +0000 (-0400) Subject: staging/lustre/ptlrpc: Fix assertion failure of null_alloc_rs() X-Git-Tag: omap-for-v3.16/fixes-against-rc1~39^2~36^2~1161 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a34041af9e2167e56035a801c384687fcb05a577;p=pandora-kernel.git staging/lustre/ptlrpc: Fix assertion failure of null_alloc_rs() lustre_get_emerg_rs() set the size of the reply buffer to zero by mistake, which will cause LBUG in null_alloc_rs() when memory pressure is high. This patch fix this problem and adds a size check to avoid the problem of insufficient buffer size. Signed-off-by: Li Xi Signed-off-by: Patrick Farrell Reviewed-on: http://review.whamcloud.com/8200 Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-3680 Reviewed-by: John L. Hammond Signed-off-by: Oleg Drokin Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed