Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1323740
| From | Bean Huo <jackyard88@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v2 12/17] drivers:mtd:ubi:add disable bakvol while ubi detach |
| Date | 2016-02-02 03:40 +0100 |
| Message-ID | <qXz2Q-3Wf-61@gated-at.bofh.it> (permalink) |
| References | <qXz2N-3Wf-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
From: Bean Huo <beanhuo@micron.com> When ubi device is detached, bakvol should be disable and free pre-allocation memory. Signed-off-by: BeanHuo <beanhuo@micron.com> --- drivers/mtd/ubi/build.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mtd/ubi/build.c b/drivers/mtd/ubi/build.c index 22fd19c..4f7a466 100644 --- a/drivers/mtd/ubi/build.c +++ b/drivers/mtd/ubi/build.c @@ -1118,6 +1118,8 @@ int ubi_detach_mtd_dev(int ubi_num, int anyway) */ get_device(&ubi->dev); + clear_bakvol(ubi); + ubi_debugfs_exit_dev(ubi); uif_close(ubi); -- 1.9.1
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH v2 12/17] drivers:mtd:ubi:add disable bakvol while ubi detach Bean Huo <jackyard88@gmail.com> - 2016-02-02 03:40 +0100
csiph-web