]> git.baikalelectronics.ru Git - kernel.git/commit
staging/lustre/clio: reorder initialization in cl_req_alloc()
authorJohn L. Hammond <john.hammond@intel.com>
Fri, 15 Aug 2014 16:48:10 +0000 (12:48 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 17 Aug 2014 16:38:42 +0000 (09:38 -0700)
commita41edb0ddca3416e8dfbcc4eae91d8ca8f562a36
tree498e5a9eb927cad5d510a6cfaf6ee22e8900ffb7
parentfeb6ba3854e260301015cff5f0a730ae1df40c7b
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 <john.hammond@intel.com>
Reviewed-on: http://review.whamcloud.com/11009
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5290
Reviewed-by: Bobi Jam <bobijam@gmail.com>
Reviewed-by: Jinshan Xiong <jinshan.xiong@intel.com>
Signed-off-by: Oleg Drokin <oleg.drokin@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/obdclass/cl_io.c