]> bbs.cooldavid.org Git - net-next-2.6.git/commit
hfsplus: fix BKL leak in hfsplus_ioctl
authorChristoph Hellwig <hch@lst.de>
Fri, 1 Oct 2010 03:41:27 +0000 (05:41 +0200)
committerChristoph Hellwig <hch@lst.de>
Fri, 1 Oct 2010 03:41:27 +0000 (05:41 +0200)
commit249e6353001e407edf5c9a74482ecfca90c8ff33
treec9f30ff5f686e06cd97fbc891dd90346fc8bc9a7
parent0f44fbd297e1cda5d9ecc9f5321a86fe647c7d4a
hfsplus: fix BKL leak in hfsplus_ioctl

Currenly the HFSPLUS_IOC_EXT2_GETFLAGS case never unlocks the BKL, which
can lead to easily reproduced lockups when doing multiple GETFLAGS ioctls.

Fix this by only taking the BKL for the HFSPLUS_IOC_EXT2_SETFLAGS case
as neither HFSPLUS_IOC_EXT2_GETFLAGS not the default error case needs it.

Signed-off-by: Christoph Hellwig <hch@tuxera.com>
fs/hfsplus/ioctl.c