lkml.org 
[lkml]   [2023]   [Mar]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH-next v2 Resend] scsi: fix use-after-free problem in scsi_remove_target
From
On 3/6/23 04:16, Zhong Jinghua wrote:
> + /*
> + * If the reference count is already zero, skip this
> + * target is safe because scsi_target_destroy()
> + * will wait until the host lock has been released
> + * before freeing starget.
> + */

The above comment has grammatical issues and is confusing. I think the
comment that I suggested was much better than the above.

Bart.

\
 
 \ /
  Last update: 2023-03-27 00:48    [W:0.170 / U:1.672 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site