[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20140902.134849.506263512436464245.davem@davemloft.net>
Date: Tue, 02 Sep 2014 13:48:49 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: festevam@...il.com
Cc: linux@....linux.org.uk, B38611@...escale.com,
netdev@...r.kernel.org, fabio.estevam@...escale.com
Subject: Re: [PATCH net-next 0/3] fec: Do not use NULL pointer to indicate
error
From: Fabio Estevam <festevam@...il.com>
Date: Mon, 1 Sep 2014 22:12:52 -0300
> Using IS_ERR() to indicate error can simplify the code a bit, so let's use
> it when appropriate.
I would rather you not do this.
Generally speaking we should not leave pointer error values in
structure pointers.
It's just asking for someone to later accidently kfree or
release the "object" because pointer errors evaluate to
non-NULL.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists