datapath: Correctly validate vport attributes on old kernels.
authorJesse Gross <jesse@nicira.com>
Tue, 20 Sep 2011 17:31:29 +0000 (10:31 -0700)
committerJesse Gross <jesse@nicira.com>
Tue, 20 Sep 2011 22:21:06 +0000 (15:21 -0700)
commiteba3d1cae5c360019b8b56d93a6e7f155db9e73b
tree3fd9aa2fd6b60c10b6a57939c2306cc05f512c7c
parentb9e7aadff4630539ce1a2cc5f46d31e53eea33bb
datapath: Correctly validate vport attributes on old kernels.

The vport policy for OVS_VPORT_ATTR_PORT_NO and OVS_VPORT_ATTR_TYPE
are present only in the section for newer kernels.  This means that
on older kernels the length of these attributes are never checked
anywhere but we go ahead and read from them anyways.

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