Re: [PATCH] swap: divide-by-zero when zero length swap file on ssd

2018-04-06 Thread Andrew Morton
On Fri, 6 Apr 2018 09:52:50 -0700 Randy Dunlap wrote: > [adding linux-mm and akpm] Thanks. > ... The patch is a huge mess, with leading and trailing whitespace. I fixed all that up, but we'd like to receive Tom's signed-off-by:, please. Documentation/process/submitting-patches.rst section 11

Re: [PATCH] swap: divide-by-zero when zero length swap file on ssd

2018-04-06 Thread Randy Dunlap
[adding linux-mm and akpm] On 04/06/2018 07:11 AM, Tom Abraham wrote: > > > Calling swapon() on a zero length swap file on SSD can lead to a > > divide-by-zero.