|
From: | Josef Bacik |
Subject: | Re: [PATCH 1/3] push/pop errno in initrd read file path |
Date: | Fri, 11 Mar 2016 13:13:36 -0500 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 |
On 03/11/2016 12:23 PM, Vladimir 'phcoder' Serbinenko wrote:
On Friday, March 11, 2016, Josef Bacik <address@hidden <mailto:address@hidden>> wrote: If you try to load an initrd from http and it errors out we will free the initrd context but continue on because net_tcp_socket_close() will reset the grub_errno as will grub_initrd_close(). So we'll lose the errno and return GRUB_ERR_NONE instead of the original error. Add push/pulls to the appropriate places so we don't lose our errno. Thanks, Close functions shouldn't do this. Can you fix them instead? Also please add [2.02] to the subjectwhen appropriate, like in this case.
So do we not want close functions to do grub_error() at all? Seems like there may be some cases where we want to know there was an error closing a tcp socket or the initrd? Maybe not, just want to make sure before I go make these two functions void. Thanks,
Josef
[Prev in Thread] | Current Thread | [Next in Thread] |