datapath: Avoid pointer arithmetic on possibly-NULL pointer.
authorBen Pfaff <blp@nicira.com>
Fri, 9 Jan 2009 01:06:19 +0000 (17:06 -0800)
committerBen Pfaff <blp@nicira.com>
Tue, 13 Jan 2009 01:17:30 +0000 (17:17 -0800)
commitf93f95f58257e684f84d97644f98b8044eb7bede
tree5ec3423e6544447f9519765177d5e7fda64748e1
parent82f2a1fbd5f1730ee44ed5cc86f56126b6c15186
datapath: Avoid pointer arithmetic on possibly-NULL pointer.

Pointer arithmetic on a null pointer yields undefined behavior, even
though it doesn't really matter in the real world (normally).

Found by Chris Eagle via Fortify.
datapath/datapath.c
datapath/dp_dev.c