Skip to content
Commit eb3d5cc6 authored by Jesper Juhl's avatar Jesper Juhl Committed by Rusty Russell
Browse files

modpost: Stop grab_file() from leaking filedescriptors if fstat() fails



In case the open() call succeeds but the subsequent fstat() call
fails, then we'll return without close()'ing the filedescriptor.

Signed-off-by: default avatarJesper Juhl <jj@chaosbits.net>
Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
parent 61011677
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment