Thread (3 messages) 3 messages, 3 authors, 2017-12-06

Re: [PATCH net-next] rds: debug: fix null check on static array

flat view

From: Santosh Shilimkar <hidden>
Date: 2017-12-06 16:35:27
Also in: linux-rdma

On 12/6/2017 3:32 AM, Sowmini Varadhan wrote:
On (12/06/17 10:47), Prashant Bhole wrote:
quoted
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 over that memory (in which case
there could be more serious issues than a busted debug string) but
it's good  to be safe and check I suppose.
Thanks Sowmini !!

Acked-by: Santosh Shilimkar <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help