Fixed a use-after-free bug in zfs_zget().
authorGunnar Beutner <gunnar@beutner.name>
Thu, 14 Apr 2011 20:07:24 +0000 (22:07 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 21 Apr 2011 20:48:01 +0000 (13:48 -0700)
commit36df284366caa77cb40083d2e6bcce02274e2f05
treedefd65b3ff2f00226f8fb0d80e6fcc438af144b5
parentd247f2a3cc24e8127ec1c5055bf0cd6c39c09add
Fixed a use-after-free bug in zfs_zget().

Fixed a bug where zfs_zget could access a stale znode pointer when
the inode had already been removed from the inode cache via iput ->
iput_final -> ... -> zfs_zinactive but the corresponding SA handle
was still alive.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #180
module/zfs/zfs_znode.c