commit | 7eb3aa65853e1b223bfc786b023b702018cb76c0 | [log] [tgz] |
---|---|---|
author | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | Wed Mar 07 19:08:36 2012 +0200 |
committer | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | Fri Mar 09 09:39:31 2012 +0200 |
tree | 3242d8bbff42f7ec5c2678790683471ff4c54861 | |
parent | add8287e3fa2160229117c9e1b7c9ca8cb661423 [diff] |
UBI: fix eraseblock picking criteria The 'find_wl_entry()' function expects the maximum difference as the second argument, not the maximum absolute value. So the "unknown" eraseblock picking was incorrect, as Shmulik Ladkani spotted. This patch fixes the issue. Reported-by: Shmulik Ladkani <shmulik.ladkani@gmail.com> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Reviewed-by: Shmulik Ladkani <shmulik.ladkani@gmail.com> Cc: stable@kernel.org