diff options
author | Namjae Jeon <linkinjeon@kernel.org> | 2025-05-20 03:25:03 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-06-04 15:45:11 +0300 |
commit | cb7e06e9736d73007dc8dab7b353733bb37df86b (patch) | |
tree | 38a580995e26027fc9ea4fcfa7e50dd5e4d20c5a /scripts/gdb/linux/xarray.py | |
parent | 725c5d0b919a6a53267670ae061d92876a73363d (diff) | |
download | linux-cb7e06e9736d73007dc8dab7b353733bb37df86b.tar.xz |
ksmbd: use list_first_entry_or_null for opinfo_get_list()
[ Upstream commit 10379171f346e6f61d30d9949500a8de4336444a ]
The list_first_entry() macro never returns NULL. If the list is
empty then it returns an invalid pointer. Use list_first_entry_or_null()
to check if the list is empty.
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Closes: https://lore.kernel.org/r/202505080231.7OXwq4Te-lkp@intel.com/
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'scripts/gdb/linux/xarray.py')
0 files changed, 0 insertions, 0 deletions