Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add return to the if (rval == -1) branch If we are in a cleanup the tst_brkm_() will return back and we will continue and print more tst_brkm_() messages particulary the "short write()" in the case of SAFE_WRITE_ALL - Add check for invalid return value (rval < 0) This will not happen unless there is a bug in libc but we should check for it anyways. - Remove TERRNO from the short write tst_brkm_() Since in a case of a short write the errno is not defined and we will print whatever was left there. Signed-off-by: Cyril Hrubis <[email protected]> Reviewed-by: Petr Vorel <[email protected]> Link: https://lore.kernel.org/ltp/[email protected]/
- Loading branch information