[i2c] [patch 2.6.26-rc1] i2c_use_client() defends against NULL
David Brownell
david-b at pacbell.net
Sat May 17 15:57:56 CEST 2008
On Saturday 17 May 2008, Jean Delvare wrote:
> On Sun, 4 May 2008 13:06:20 -0700, David Brownell wrote:
> > Defend the i2c refcount calls against NULL pointers, as is important
> > (and conventional) for such calls ... we don't want to morph NULL
> > pointers into bogus non-null ones.
>
> Passing NULL to the current functions would just crash, it wouldn't
> morph anything.
That's only if you assume an MMU set up to cause oopsing on reference
to the first and last pages of memory. Not the best of assumptions...
More information about the i2c
mailing list