]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC: r321675
authorrmacklem <rmacklem@FreeBSD.org>
Fri, 25 Aug 2017 22:44:55 +0000 (22:44 +0000)
committerrmacklem <rmacklem@FreeBSD.org>
Fri, 25 Aug 2017 22:44:55 +0000 (22:44 +0000)
commit30b363777084e44935c6f79979739ad58f78efe5
tree32d7ed1f06ca878b4e7ddcf5a0fb1bad61364dcf
parent37ad32a8bcae27a507b57290f245ab4d06eaf33e
MFC: r321675
Fix possible crash for the NFSv4.1 pNFS client.

If the nfsrpc_createlayoutrpc() call in nfsrpc_getcreatelayout() fails,
the code used nfhpp when it might be set NULL. This patch checks for
the error cases (laystat != 0) and avoids using nfhpp for the failure case.
This would only affect NFSv4.1 mounts with the "pnfs" option.
Found while testing the "umount -N" patch not yet in head.
sys/fs/nfsclient/nfs_clrpcops.c