mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
JFFS2: fix min/max confusion
MAX_SUMMARY_SIZE was meant as a limit, not as a minimum Signed-off-by: Roel Kluin <[email protected]> Signed-off-by: Artem Bityutskiy <[email protected]> Signed-off-by: David Woodhouse <[email protected]>
This commit is contained in:
parent
2695eab964
commit
0fed784b0f
1 changed files with 1 additions and 1 deletions
|
|
@ -23,7 +23,7 @@
|
|||
|
||||
int jffs2_sum_init(struct jffs2_sb_info *c)
|
||||
{
|
||||
uint32_t sum_size = max_t(uint32_t, c->sector_size, MAX_SUMMARY_SIZE);
|
||||
uint32_t sum_size = min_t(uint32_t, c->sector_size, MAX_SUMMARY_SIZE);
|
||||
|
||||
c->summary = kzalloc(sizeof(struct jffs2_summary), GFP_KERNEL);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue