tunneling: Internal dev vport can be NULL.
authorJesse Gross <jesse@nicira.com>
Wed, 6 Oct 2010 02:14:21 +0000 (19:14 -0700)
committerJesse Gross <jesse@nicira.com>
Fri, 8 Oct 2010 22:43:38 +0000 (15:43 -0700)
commit17a07f9f9d07f07d8dbb33ea1f8c9e53c89639de
tree021bc7f1bbcf27638bd3946c5223bf73c156ac63
parentda3827b5518ed6cd2256ba87eddd1c40bbca75f0
tunneling: Internal dev vport can be NULL.

Commit 4bee42 "tunnel: Correctly check for internal device." fixed
the call to internal_dev_get_vport() by first checking that the
device is in fact an internal device.  However, it also accidentally
removed the check ensuring that the vport itself was not NULL.  This
adds that check back by redoing the previous change in a more robust
manner.

Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
datapath/tunnel.c
datapath/vport-internal_dev.c