]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8dd53f25a334ce6dc04cdf697875ca42f4755e47
tree83a9572ac9ae6ef9ef93df668c9f5707047f1b27
parent82aba559a0cf92a64055707c6c8427d99ab0de47
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