lkml.org 
[lkml]   [2020]   [Jun]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] sysctl: Call sysctl_head_finish on error
On Wed, Jun 24, 2020 at 07:17:07PM +0100, Matthew Wilcox wrote:
> From: "Matthew Wilcox (Oracle)" <willy@infradead.org>
>
> This error path returned directly instead of calling sysctl_head_finish().

Looks good. But if you touch this anyway we also need to add the extra
byte to count for the write case (see the memdup_user_nul implementation).

\
 
 \ /
  Last update: 2020-06-24 20:21    [W:0.019 / U:0.576 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site