diff options
| -rw-r--r-- | fs/ubifs/super.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ubifs/super.c b/fs/ubifs/super.c index 845c5d7af909..bffadbb67e47 100644 --- a/fs/ubifs/super.c +++ b/fs/ubifs/super.c | |||
| @@ -1876,8 +1876,10 @@ static int ubifs_remount_fs(struct super_block *sb, int *flags, char *data) | |||
| 1876 | bu_init(c); | 1876 | bu_init(c); |
| 1877 | else { | 1877 | else { |
| 1878 | dbg_gen("disable bulk-read"); | 1878 | dbg_gen("disable bulk-read"); |
| 1879 | mutex_lock(&c->bu_mutex); | ||
| 1879 | kfree(c->bu.buf); | 1880 | kfree(c->bu.buf); |
| 1880 | c->bu.buf = NULL; | 1881 | c->bu.buf = NULL; |
| 1882 | mutex_unlock(&c->bu_mutex); | ||
| 1881 | } | 1883 | } |
| 1882 | 1884 | ||
| 1883 | ubifs_assert(c->lst.taken_empty_lebs > 0); | 1885 | ubifs_assert(c->lst.taken_empty_lebs > 0); |
