projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
drm/radeon: rework crtc pll setup to better support PPLL sharing
[cascardo/linux.git]
/
fs
/
ubifs
/
lpt.c
diff --git
a/fs/ubifs/lpt.c
b/fs/ubifs/lpt.c
index
ce33b2b
..
8640920
100644
(file)
--- a/
fs/ubifs/lpt.c
+++ b/
fs/ubifs/lpt.c
@@
-1749,7
+1749,10
@@
int ubifs_lpt_init(struct ubifs_info *c, int rd, int wr)
return 0;
out_err:
- ubifs_lpt_free(c, 0);
+ if (wr)
+ ubifs_lpt_free(c, 1);
+ if (rd)
+ ubifs_lpt_free(c, 0);
return err;
}