Re: [ 41/45] m68k: Truncate base in do_div()

From: Geert Uytterhoeven
Date: Sun Aug 18 2013 - 16:39:11 EST


On Sun, Aug 18, 2013 at 10:36 PM, Greg Kroah-Hartman
<gregkh@xxxxxxxxxxxxxxxxxxx> wrote:
> 3.10-stable review patch. If anyone has any objections, please let me know.
>
> ------------------
>
> From: Andreas Schwab <schwab@xxxxxxxxxxxxxx>
>
> commit ea077b1b96e073eac5c3c5590529e964767fc5f7 upstream.
>
> Explicitly truncate the second operand of do_div() to 32 bits to guard
> against bogus code calling it with a 64-bit divisor.
>
> [Thorsten]
>
> After upgrading from 3.2 to 3.10, mounting a btrfs volume fails with:
>
> btrfs: setting nodatacow, compression disabled
> btrfs: enabling auto recovery
> btrfs: disk space caching is enabled

What happened to the rest of the commit message?

> ---
> arch/m68k/include/asm/div64.h | 9 +++++----

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/