lkml.org 
[lkml]   [2015]   [Oct]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch 2/2] misc: mic/scif: fix wrap around tests
On Tue, Oct 13, 2015 at 08:21:24PM -0700, Sudeep Dutt wrote:

> > @@ -1613,7 +1613,7 @@ off_t scif_register(scif_epd_t epd, void *addr, size_t len, off_t offset,
> > if ((map_flags & SCIF_MAP_FIXED) &&
> > ((ALIGN(offset, PAGE_SIZE) != offset) ||
> > (offset < 0) ||
> > - (offset + (off_t)len < offset)))
> > + (len < LONG_MAX - offset)))
>
> Hi Dan,
> Should this be > instead of < like the others?

Gar. You're right, obviously. Thanks. I will resend tomorrow.

regards,
dan carpenter



\
 
 \ /
  Last update: 2015-10-14 20:21    [W:0.088 / U:0.220 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site