afs: Verify osi_UFSOpen worked
authorPerry Ruiter <pruiter@sinenomine.net>
Thu, 29 May 2014 22:51:57 +0000 (15:51 -0700)
committerD Brashear <shadow@your-file-system.com>
Mon, 6 Oct 2014 18:48:07 +0000 (14:48 -0400)
commitc6b61a4510c0c34688b979182ea6f3823a840296
tree6af308d8db8174e699fc06318ad04c02fd150c10
parentc90c5e97c6361e06ff06aab02d0768a0bd43354d
afs: Verify osi_UFSOpen worked

  In some builds (UKERNEL) osi_UFSOpen returns a NULL if it runs
into a problem.  On the other builds osi_UFSOpen simply panics.
afs/afs_cell.c was checking for a NULL return but other callers
were not.  Add checking logic to all callers.
  This is a prepartory patch.  A subsequent patch will have
osi_UFSOpen return NULL rather than panic for other builds too.

Change-Id: I3610a57dff59b84fe5ea8b1c862f3192157f255f
Reviewed-on: http://gerrit.openafs.org/11243
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Chas Williams - CONTRACTOR <chas@cmf.nrl.navy.mil>
Reviewed-by: Garrett Wollman <wollman@csail.mit.edu>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Reviewed-by: D Brashear <shadow@your-file-system.com>
src/afs/VNOPS/afs_vnop_read.c
src/afs/VNOPS/afs_vnop_symlink.c
src/afs/VNOPS/afs_vnop_write.c
src/afs/afs_dcache.c
src/afs/afs_init.c
src/afs/afs_volume.c