]> www.infradead.org Git - users/jedix/linux-maple.git/commit
IB/ipoib: ioctls IPOIBACLNADD and IPOIBACLNGET do not work correctly
authorKa-Cheong Poon <ka-cheong.poon@oracle.com>
Mon, 12 Feb 2018 16:39:21 +0000 (08:39 -0800)
committerJack Vogel <jack.vogel@oracle.com>
Fri, 16 Feb 2018 22:58:19 +0000 (14:58 -0800)
commit61920a6db770a6e1af7276fc16f306922fe6379c
treedd600e75eb246ccf12aa7c67e8498bd7528beda4
parent3886855cb7358c0be3a3176805f591c423533358
IB/ipoib: ioctls IPOIBACLNADD and IPOIBACLNGET do not work correctly

There is a problem in using the ips pointer in ipoib_do_ioctl().  It
does incorrect pointer arithmetic for the new ioctls since ips is an
u32 pointer.  It should use a struct in6_addr pointer instead of using
the ips pointer directly.  The end result is that it does not work
correctly if a list of ACLs are modified.

Orabug: 27533123

Signed-off-by: Ka-Cheong Poon <ka-cheong.poon@oracle.com>
Reviewed-by: Yuval Shaia <yuval.shaia@oracle.com>
drivers/infiniband/ulp/ipoib/ipoib_ioctl.c