dm: remove invalid sparse __acquires and __releases annotations
authorMike Snitzer <snitzer@redhat.com>
Fri, 4 Dec 2020 20:25:18 +0000 (15:25 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Dec 2020 12:22:10 +0000 (13:22 +0100)
commit422e24487fceacc9cd961c39f93e74bbfd6dce05
treedfa7a478d18e97b52dc963296a5efc6d1a60944f
parent8f602268285452217da920fffc7040d7cf274181
dm: remove invalid sparse __acquires and __releases annotations

commit bde3808bc8c2741ad3d804f84720409aee0c2972 upstream.

Fixes sparse warnings:
drivers/md/dm.c:508:12: warning: context imbalance in 'dm_prepare_ioctl' - wrong count at exit
drivers/md/dm.c:543:13: warning: context imbalance in 'dm_unprepare_ioctl' - wrong count at exit

Fixes: 971888c46993f ("dm: hold DM table for duration of ioctl rather than use blkdev_get")
Cc: stable@vger.kernel.org
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/md/dm.c