diff options
author | Jan Kara <jack@suse.cz> | 2017-03-08 14:56:05 +0100 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2017-03-08 10:55:40 -0700 |
commit | 672a2c87c83649fb0167202342ce85af9a3b4f1c (patch) | |
tree | b871c356005788f0738f963e0aacc154c9d88bee /arch/powerpc/sysdev/mv64x60_dev.c | |
parent | 79bd99596b7305ab08109a8bf44a6a4511dbf1cd (diff) | |
download | linux-672a2c87c83649fb0167202342ce85af9a3b4f1c.tar.bz2 |
axonram: Fix gendisk handling
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>
Diffstat (limited to 'arch/powerpc/sysdev/mv64x60_dev.c')
0 files changed, 0 insertions, 0 deletions