projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97e0546
)
block: remove blk_free_devt in add_partition
author
weiping zhang
<zhangweiping@didichuxing.com>
Fri, 18 Aug 2017 15:54:46 +0000
(23:54 +0800)
committer
Jens Axboe
<axboe@kernel.dk>
Thu, 24 Aug 2017 14:26:57 +0000
(08:26 -0600)
put_device(pdev) will call pdev->type->release finally, and blk_free_devt
has been called in part_release(), so remove it.
Signed-off-by: weiping zhang <zhangweiping@didichuxing.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/partition-generic.c
patch
|
blob
|
blame
|
history
diff --git
a/block/partition-generic.c
b/block/partition-generic.c
index 1745a9659517c14f83f60054c2ce230e60872a8b..86e8fe1adcdb7f1b10fd5acd8f5c36f712736971 100644
(file)
--- a/
block/partition-generic.c
+++ b/
block/partition-generic.c
@@
-403,7
+403,6
@@
out_del:
device_del(pdev);
out_put:
put_device(pdev);
- blk_free_devt(devt);
return ERR_PTR(err);
}