commit | 19b9def25852caf710b978cd27955090650f115b | [log] [tgz] |
---|---|---|
author | Matan Barak <matanb@mellanox.com> | Sun Jun 17 12:59:54 2018 +0300 |
committer | Jason Gunthorpe <jgg@mellanox.com> | Tue Jun 19 10:53:02 2018 -0600 |
tree | 016cbeb1b578c662b41573af8ba96a469331a088 | |
parent | 2d9c1bd7e177bd8b460403db9513b0a223e46ab8 [diff] |
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>