]> git.karo-electronics.de Git - karo-tx-linux.git/commit
IB/mlx5: Fix stack info leak in mlx5_ib_alloc_ucontext()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 25 Jul 2013 17:04:36 +0000 (20:04 +0300)
committerRoland Dreier <roland@purestorage.com>
Wed, 31 Jul 2013 21:12:08 +0000 (14:12 -0700)
commit92b0ca7cb149d20bd97a2ad88d860745045a77dc
treec1a9fe35174747307bff2938b2e7471fd3c5821d
parent281d1a9211986cfdccbefcd6128049a0a0d473b2
IB/mlx5: Fix stack info leak in mlx5_ib_alloc_ucontext()

We don't set "resp.reserved".  Since it's at the end of the struct
that means we don't have to copy it to the user.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Eli Cohen <eli@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/mlx5/main.c