aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/sancov_plugin.c
diff options
context:
space:
mode:
authorJan Kara <[email protected]>2017-03-08 13:56:05 +0000
committerJens Axboe <[email protected]>2017-03-08 17:55:40 +0000
commit672a2c87c83649fb0167202342ce85af9a3b4f1c (patch)
treeb871c356005788f0738f963e0aacc154c9d88bee /scripts/gcc-plugins/sancov_plugin.c
parentblk: improve order of bio handling in generic_make_request() (diff)
downloadkernel-672a2c87c83649fb0167202342ce85af9a3b4f1c.tar.gz
kernel-672a2c87c83649fb0167202342ce85af9a3b4f1c.zip
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 <[email protected]> Signed-off-by: Jan Kara <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/sancov_plugin.c')
0 files changed, 0 insertions, 0 deletions