+7
−2
Loading
Functions are allowed to change the value of errno, even when they're successful. So, save it before calling other functions to ensure it's not overwritten. Additionally, scan-build complains that these errnos can still be zero, even though the manual says that they're always set if an error is encountered. To keep it quiet, added a couple of assertions that check it. Fixes: #3453 Signed-off-by:Konrad Sztyber <konrad.sztyber@intel.com> Change-Id: I76209bc1970f42cc8d52446fa651d5a9fee3d70f Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/24298 Reviewed-by:
Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by:
Aleksey Marchuk <alexeymar@nvidia.com> Community-CI: Mellanox Build Bot Bypass-Merge-Requirements: Tomasz Zawadzki <tomasz.zawadzki@intel.com>