block/sed-opal: Introduce free_opal_dev to free the structure and clean up state
authorScott Bauer <scott.bauer@intel.com>
Wed, 22 Feb 2017 17:15:06 +0000 (10:15 -0700)
committerJens Axboe <axboe@fb.com>
Thu, 23 Feb 2017 18:55:41 +0000 (11:55 -0700)
commit7d6d15789d69856f1c5405e106a773c87277eb8c
tree7ae43ae226e85c4db783756a3c07f14ed1dbd0cf
parent124298bd03acebd9c9da29a794718aca31bec1f7
block/sed-opal: Introduce free_opal_dev to free the structure and clean up state

Before we free the opal structure we need to clean up any saved
locking ranges that the user had told us to unlock from a suspend.

Signed-off-by: Scott Bauer <scott.bauer@intel.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/sed-opal.c
include/linux/sed-opal.h