selftests: nci: Fix the wrong condition
authorBongsu Jeon <bongsu.jeon@samsung.com>
Tue, 17 Aug 2021 13:28:15 +0000 (06:28 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Aug 2021 09:17:57 +0000 (10:17 +0100)
commit1d5b8d01db98abb8c176838fad73287366874582
tree83a9572ac9ae6ef9ef93df668c9f5707047f1b27
parent78a7b2a8a0fa31f63ac16ac13601db6ed8259dfc
selftests: nci: Fix the wrong condition

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

Signed-off-by: Bongsu Jeon <bongsu.jeon@samsung.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/nci/nci_dev.c