raw/ntb: check SPAD user index
authorChengwen Feng <fengchengwen@huawei.com>
Wed, 21 Apr 2021 02:08:15 +0000 (10:08 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 5 May 2021 20:50:33 +0000 (22:50 +0200)
commit586f12881dc0fc37720e55f59c8a11a9e184388d
tree4a8b68efa7c23afed59249f6d008b8909551ab4a
parent11e027022d0f72f3cd7419b83e69a9ceb342666d
raw/ntb: check SPAD user index

This patch adds checking spad user index validity when set or get attr.

Fixes: 277310027965 ("raw/ntb: introduce NTB raw device driver")
Cc: stable@dpdk.org
Signed-off-by: Chengwen Feng <fengchengwen@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
Acked-by: Xiaoyun Li <xiaoyun.li@intel.com>
drivers/raw/ntb/ntb.c