diff options
author | Navid Emamdoost <navid.emamdoost@gmail.com> | 2024-02-18 07:25:38 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2024-02-18 16:01:18 +0300 |
commit | 31edf4bbe0ba27fd03ac7d87eb2ee3d2a231af6d (patch) | |
tree | d15a2d90e3c1ea692ae7b9c846b8d5dd4c8b8963 /drivers/nvdimm | |
parent | d69591caec243811449d4e6571fbf460f06fb8f6 (diff) | |
download | linux-31edf4bbe0ba27fd03ac7d87eb2ee3d2a231af6d.tar.xz |
nbd: null check for nla_nest_start
nla_nest_start() may fail and return NULL. Insert a check and set errno
based on other call sites within the same source code.
Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com>
Reviewed-by: Michal Kubecek <mkubecek@suse.cz>
Fixes: 47d902b90a32 ("nbd: add a status netlink command")
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20240218042534.it.206-kees@kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/nvdimm')
0 files changed, 0 insertions, 0 deletions