mirror of
https://github.com/nxp-imx/linux-imx.git
synced 2025-07-17 22:59:37 +02:00
Revert "jfs: fix shift-out-of-bounds in dbJoin"
commite42e29cc44
upstream. This reverts commitcca974daeb
. The added sanity check is incorrect. BUDMIN is not the wrong value and is too small. Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
49df34d2b7
commit
6fb93eeb25
|
@ -2765,9 +2765,7 @@ static int dbBackSplit(dmtree_t *tp, int leafno, bool is_ctl)
|
||||||
* leafno - the number of the leaf to be updated.
|
* leafno - the number of the leaf to be updated.
|
||||||
* newval - the new value for the leaf.
|
* newval - the new value for the leaf.
|
||||||
*
|
*
|
||||||
* RETURN VALUES:
|
* RETURN VALUES: none
|
||||||
* 0 - success
|
|
||||||
* -EIO - i/o error
|
|
||||||
*/
|
*/
|
||||||
static int dbJoin(dmtree_t *tp, int leafno, int newval, bool is_ctl)
|
static int dbJoin(dmtree_t *tp, int leafno, int newval, bool is_ctl)
|
||||||
{
|
{
|
||||||
|
@ -2794,10 +2792,6 @@ static int dbJoin(dmtree_t *tp, int leafno, int newval, bool is_ctl)
|
||||||
* get the buddy size (number of words covered) of
|
* get the buddy size (number of words covered) of
|
||||||
* the new value.
|
* the new value.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if ((newval - tp->dmt_budmin) > BUDMIN)
|
|
||||||
return -EIO;
|
|
||||||
|
|
||||||
budsz = BUDSIZE(newval, tp->dmt_budmin);
|
budsz = BUDSIZE(newval, tp->dmt_budmin);
|
||||||
|
|
||||||
/* try to join.
|
/* try to join.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user