make sure we really have a volid and avoid dereferencing tvp
if there's none
Change-Id: Iec6e7cba4d43e2d9c9af296bd6a1574e290bd118
Reviewed-on: http://gerrit.openafs.org/1512
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
*cpos = ':';
if (!tvp)
return ENODEV; /* Couldn't find the volume */
+ else
+ volid = tvp->volume;
/* Don't cross mountpoint from a BK to a BK volume */
if ((states & CBackup) && (tvp->states & VBackup)) {
if (acellidxp)
*acellidxp = cellidx;
if (avolnump)
- *avolnump = tvp->volume;
+ *avolnump = volid;
if (avnoidp)
*avnoidp = vnoid;
if (auniqp)