Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1644575

Re: [PATCH] ovl: fix ovl_rename error handling

From Amir Goldstein <amir73il@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH] ovl: fix ovl_rename error handling
Date 2017-05-18 16:00 +0200
Message-ID <tIu8a-3sl-17@gated-at.bofh.it> (permalink)
References <tItOO-3bL-31@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, May 18, 2017 at 4:34 PM, Arnd Bergmann <arnd@arndb.de> wrote:
> We try to clean up two objects before they got initialized:
>
> fs/overlayfs/dir.c: In function 'ovl_rename':
> fs/overlayfs/dir.c:1060:2: error: 'newdentry' may be used uninitialized in this function [-Werror=maybe-uninitialized]
> fs/overlayfs/dir.c:891:17: note: 'newdentry' was declared here
> fs/overlayfs/dir.c:1062:2: error: 'olddentry' may be used uninitialized in this function [-Werror=maybe-uninitialized]
> fs/overlayfs/dir.c:890:17: note: 'olddentry' was declared here
>
> Assuming that no special cleanup is required for the new code, the correct
> branch target should be "out_revert_creds" to clean up everything that
> got initialized up to then.
>

Yep, this is correct. You are the 4th to send this patch :)
Thanks

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] ovl: fix ovl_rename error handling Arnd Bergmann <arnd@arndb.de> - 2017-05-18 15:40 +0200
  Re: [PATCH] ovl: fix ovl_rename error handling Amir Goldstein <amir73il@gmail.com> - 2017-05-18 16:00 +0200
    Re: [PATCH] ovl: fix ovl_rename error handling Miklos Szeredi <miklos@szeredi.hu> - 2017-05-18 16:20 +0200

csiph-web