diff options
author | Matan Barak <matanb@mellanox.com> | 2018-06-17 11:59:54 +0200 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2018-06-19 18:53:02 +0200 |
commit | 19b9def25852caf710b978cd27955090650f115b (patch) | |
tree | 016cbeb1b578c662b41573af8ba96a469331a088 /include/rdma/uverbs_named_ioctl.h | |
parent | IB/uverbs: Add a macro to define a type with no kernel known size (diff) | |
download | linux-19b9def25852caf710b978cd27955090650f115b.tar.xz linux-19b9def25852caf710b978cd27955090650f115b.zip |
IB/uverbs: Allow an empty namespace in ioctl() framework
The ioctl parser framework wrongly assumed that each namespace is
populated. This could lead to NULL dereferences. Fix the parser to
always check that a given namespace indeed exists.
Fixes: fac9658cabb9 ("IB/core: Add new ioctl interface")
Signed-off-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'include/rdma/uverbs_named_ioctl.h')
0 files changed, 0 insertions, 0 deletions