[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20151014180541.GO7289@mwanda>
Date: Wed, 14 Oct 2015 21:05:41 +0300
From: Dan Carpenter <dan.carpenter@...cle.com>
To: Sudeep Dutt <sudeep.dutt@...el.com>
Cc: Nikhil Rao <nikhil.rao@...el.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
linux-kernel@...r.kernel.org, kernel-janitors@...r.kernel.org
Subject: Re: [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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists