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:17:09 +0000 (15:17 -0700)
commitd48c88ecdbab481a210a1d02a616a30ee261cabf
tree64abe1a1c34a989f5fcc5a8d7796f39a175df6c7
parent96871912a16c25bdc18bb22db79485b0fa80a87d
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