From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lennert Buytenhek Date: Sat, 24 Jul 2010 19:00:36 +0000 Subject: Re: [patch -next v2] mv643xx_eth: potential null dereference Message-Id: <20100724190036.GA21121@mail.wantstofly.org> List-Id: References: <20100723101528.GF26313@bicker> <1279881177.24768.1623.camel@Joe-Laptop.home> <20100723110504.GG26313@bicker> <4C49C39E.8020502@bfs.de> <20100723221514.GJ26313@bicker> <4C4AAB5B.2050901@bfs.de> In-Reply-To: <4C4AAB5B.2050901@bfs.de> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: walter harms Cc: Dan Carpenter , Joe Perches , "David S. Miller" , Jiri Pirko , Denis Kirjanov , Saeed Bishara , netdev@vger.kernel.org, kernel-janitors@vger.kernel.org On Sat, Jul 24, 2010 at 10:59:07AM +0200, walter harms wrote: > IMHO it would be better to make sure that pd->t_clk,pd->tx_csum_limit > have usefull values than adding a check but this is up to the maintainer. I don't see the point of that at all. We check against zero to see whether the caller bothered to fill in the field at all, but if the caller wants to pass in bogus values, that's up to the caller.