summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2017-03-08 14:56:05 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-12-16 10:33:53 +0100
commit40b2b6453f89ee1343de00b7822b0eec5b17aaa2 (patch)
tree71a763389fbd6fffbca99f1f76ec4f3f04938d04 /scripts
parentf2396d60746fd2d3c9e038ecba03aaa09dab5134 (diff)
axonram: Fix gendisk handling
[ Upstream commit 672a2c87c83649fb0167202342ce85af9a3b4f1c ] It is invalid to call del_gendisk() when disk->queue is NULL. Fix error handling in axon_ram_probe() to avoid doing that. Also del_gendisk() does not drop a reference to gendisk allocated by alloc_disk(). That has to be done by put_disk(). Add that call where needed. Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Jens Axboe <axboe@fb.com> Signed-off-by: Sasha Levin <alexander.levin@verizon.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions