[PATCH] obj: Fix dereference before NULL check

Thomas Graf tgraf at suug.ch
Wed Jun 4 02:24:17 PDT 2014


On 06/03/14 at 10:47am, Tobias Klauser wrote:
> The check for !obj indicates that obj might be NULL, thus move the call
> to obj_ops(obj) - which dereferences obj - after the check.
> 
> Signed-off-by: Tobias Klauser <tklauser at distanz.ch>

Acked-by: Thomas Graf <tgraf at suug.ch>



More information about the libnl mailing list