mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
Previously, this function would leak the temporary return from xs_read for handle and mac address. Fix both of these and the rest of the error handling. This requires changing its return type and fixing the callers. Introduce here a READ_BACKEND macro to make the code less repetitive. Coverity ID: 1055886 Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com> Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com> Acked-by: Ian Campbell <ian.campbell@citrix.com> [ ijc -- spell out what the leaks were in the commit message ]