OSDN Git Service
(root)
/
uclinux-h8
/
linux.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
|
history
diff --git
a/block/partition-generic.c
b/block/partition-generic.c
index
1745a96
..
86e8fe1
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);
}