[IPoIB] Fix improper buffer size checks for MAC to GID IOCTL processing
authorftillier <ftillier@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 7 Dec 2005 22:07:27 +0000 (22:07 +0000)
committerftillier <ftillier@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 7 Dec 2005 22:07:27 +0000 (22:07 +0000)
Submitted by Tzachi Dar (tzachid@mellanox.co.il)

git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@198 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

ulp/ipoib/kernel/ipoib_ibat.c

index 0b47206..a49e0c5 100644 (file)
@@ -253,14 +253,14 @@ __ibat_mac_to_gid(
        IPOIB_ENTER(IPOIB_DBG_IOCTL);\r
 \r
        if( pIoStack->Parameters.DeviceIoControl.InputBufferLength !=\r
-               sizeof(IOCTL_IBAT_PORTS_IN) )\r
+               sizeof(IOCTL_IBAT_MAC_TO_GID_IN) )\r
        {\r
                IPOIB_TRACE_EXIT( IPOIB_DBG_ERROR, ("Invalid input buffer size.\n") );\r
                return STATUS_INVALID_PARAMETER;\r
        }\r
        \r
        if( pIoStack->Parameters.DeviceIoControl.OutputBufferLength !=\r
-               sizeof(IOCTL_IBAT_PORTS_OUT) )\r
+               sizeof(IOCTL_IBAT_MAC_TO_GID_OUT) )\r
        {\r
                IPOIB_TRACE_EXIT( IPOIB_DBG_ERROR, ("Invalid output buffer size.\n") );\r
                return STATUS_INVALID_PARAMETER;\r