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:00:28 +0000 (17:00 -0800)
commit4c878f1fe3108ab0c97048a8ddc47db10b3d4407
treec71091e4794f087335018d4fbeca47218bbebf28
parentf813cab633075834a7cc37b1a73fb3709c432339
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