]> git.baikalelectronics.ru Git - kernel.git/commit
rds: debug: fix null check on static array
authorPrashant Bhole <bhole_prashant_q7@lab.ntt.co.jp>
Wed, 6 Dec 2017 01:47:04 +0000 (10:47 +0900)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Dec 2017 20:02:48 +0000 (15:02 -0500)
commit008b74118138ba9f41140b8e960f87e0a478668f
tree2f9855e0ae6940edff0ac5fe79182b1672a6fedf
parent91b7a79e455eb46b6bd99916ffe3c94cf7f17cca
rds: debug: fix null check on static array

t_name cannot be NULL since it is an array field of a struct.
Replacing null check on static array with string length check using
strnlen()

Signed-off-by: Prashant Bhole <bhole_prashant_q7@lab.ntt.co.jp>
Acked-by: Sowmini Varadhan <sowmini.varadhan@oracle.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rds/connection.c