Re: [PATCH v2 1/3] smb/server: fix signing when a response uses more than one iov

ChenXiaoSong <[email protected]> Fri, 17 Jul 2026 07:43:15 +0800
Newsgroups org.kernel.vger.linux-cifs
Message-ID <[email protected]>
The warning is triggered only when invalid arguments are passed.

在 2026/7/17 4:24, Andy Shevchenko 写道:
>> +	WARN_ON_ONCE(work->iov_idx < 1 ||
>> +		     work->iov[work->iov_idx].iov_base != hdr);
> The second part of this check is basically always true. What's the point?

-- 
ChenXiaoSong <[email protected]>
Chinese Homepage: https://chenxiaosong.com
English Homepage: https://chenxiaosong.com/en