• Christoph Hellwig's avatar
    hfsplus: fix BKL leak in hfsplus_ioctl · 249e6353
    Christoph Hellwig authored
    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: default avatarChristoph Hellwig <hch@tuxera.com>
    249e6353
ioctl.c 5.07 KB