mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
block/nullb: delete unnecessary memory free
Commit 2984c86(nullb: factor disk parameters) has a typo. The nullb_device allocation/free is done outside of null_add_dev. The commit accidentally frees the nullb_device in error code path. Reported-by: Dan Carpenter <[email protected]> Signed-off-by: Shaohua Li <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
This commit is contained in:
parent
e9a823fb34
commit
060fd198a3
1 changed files with 0 additions and 1 deletions
|
|
@ -1909,7 +1909,6 @@ out_cleanup_queues:
|
|||
out_free_nullb:
|
||||
kfree(nullb);
|
||||
out:
|
||||
null_free_dev(dev);
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue