Commit 881d24d1 authored by Bongsu Jeon's avatar Bongsu Jeon Committed by Greg Kroah-Hartman
Browse files

selftests: nci: Fix the wrong condition



[ Upstream commit 1d5b8d01 ]

memcpy should be executed only in case nla_len's value is greater than 0.

Signed-off-by: default avatarBongsu Jeon <bongsu.jeon@samsung.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent e0921e72
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment