lkml.org 
[lkml]   [2012]   [Dec]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] block: Avoid divide by 0 when max_discard_sectors is 0
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.


\
 
 \ /
  Last update: 2012-12-19 02:21    [W:0.042 / U:0.640 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site