lkml.org 
[lkml]   [2021]   [Nov]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 1/2] pipe: fix potential use-after-free in pipe_read()
From
Date


On 2021/11/15 12:25, Matthew Wilcox wrote:
> On Mon, Nov 15, 2021 at 11:57:20AM +0800, Zhen Lei wrote:
>> if (!buf->len) {
>> + unsigned int __maybe_unused flags = buf->flags;
>
> Why __maybe_unused?

It's used only if "#ifdef CONFIG_WATCH_QUEUE". Otherwise, a warning will be reported.

> .
>

\
 
 \ /
  Last update: 2021-11-15 07:15    [W:0.060 / U:0.084 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site