From: John L. Hammond Date: Fri, 15 Aug 2014 16:48:10 +0000 (-0400) Subject: staging/lustre/clio: reorder initialization in cl_req_alloc() X-Git-Tag: fixes-for-v3.18-merge-window~15^2~1202 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f7acd3376387dbf55f76cc77e7dbc870c2719aff;p=pandora-kernel.git staging/lustre/clio: reorder initialization in cl_req_alloc() In cl_req_alloc() ensure that the list heads crq_pages and crq_layers have been initialized before passing the request to cl_req_completion(). This fixes an oops in the error path. Signed-off-by: John L. Hammond Reviewed-on: http://review.whamcloud.com/11009 Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5290 Reviewed-by: Bobi Jam Reviewed-by: Jinshan Xiong Signed-off-by: Oleg Drokin Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed