From: Prashant Bhole
Date: Wed, 6 Dec 2017 10:47:04 +0900
> 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
Applied, thank you.
On 12/6/2017 3:32 AM, Sowmini Varadhan wrote:
On (12/06/17 10:47), Prashant Bhole wrote:
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()
t_name is always initialized for all rds transports today, and
On (12/06/17 10:47), Prashant Bhole wrote:
>
> 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()
t_name is always initialized for all rds transports today, and would
be all zeros unless someone stomped
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
---
net/rds/connection.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/net/rds/connection.c b/net/rd