Re: [PATCH] block: Avoid divide by 0 when max_discard_sectors is 0

From: David Rientjes
Date: Tue Dec 18 2012 - 19:42:02 EST


On Tue, 18 Dec 2012, Doug Anderson wrote:

> The recent commit "block: discard granularity might not be power of 2"
> introduced a divide by 0 in the kernel. Previously the code didn't
> try to divide by discard_granularity when max_discard_sectors was 0.
>
> Fix the code to only do the division if max_discard_sectors is
> specified.
>

Could you try Linus' patch at
http://marc.info/?l=linux-kernel&m=135584941732572 and give your Tested-by
if it solves your issue?

Thanks.
--
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/