]> git.baikalelectronics.ru Git - kernel.git/commit
pNFS: Handle allocation errors correctly in objlayout_alloc_layout_hdr()
authorTrond Myklebust <trond.myklebust@primarydata.com>
Fri, 30 May 2014 00:17:17 +0000 (20:17 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Fri, 30 May 2014 00:17:17 +0000 (20:17 -0400)
commita43389261678fb87f94ce401ccf6e64d54d410b9
tree37d825bd901dc578816e71841e9f649948bcdede
parentb693dcf20bf36ab69d0d964fc2f9a87b0823711b
pNFS: Handle allocation errors correctly in objlayout_alloc_layout_hdr()

Return the NULL pointer when the allocation fails.

Cc: Boaz Harrosh <bharrosh@panasas.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/objlayout/objlayout.c