Commit 0fed784b0f1ecf57d568ae60b2cada43f9d90759
Committed by
David Woodhouse
1 parent
2695eab964
Exists in
master
and in
4 other branches
JFFS2: fix min/max confusion
MAX_SUMMARY_SIZE was meant as a limit, not as a minimum Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
fs/jffs2/summary.c
... | ... | @@ -23,7 +23,7 @@ |
23 | 23 | |
24 | 24 | int jffs2_sum_init(struct jffs2_sb_info *c) |
25 | 25 | { |
26 | - uint32_t sum_size = max_t(uint32_t, c->sector_size, MAX_SUMMARY_SIZE); | |
26 | + uint32_t sum_size = min_t(uint32_t, c->sector_size, MAX_SUMMARY_SIZE); | |
27 | 27 | |
28 | 28 | c->summary = kzalloc(sizeof(struct jffs2_summary), GFP_KERNEL); |
29 | 29 |