libxc: mmap doesn't return NULL on error...
PATCH 1/1 libxc: mmap doesn't return NULL on error...
Hi, was reading libxc code, and noticed this. Patch is bigger than strictly necessary due to indent adjust.
Against latest bk.
Rusty.
tools/libxc/xc.h +1 -1
@@ -421,7 +421,7 @@ int xc_msr_write(int xc_handle, int cpu_/** * Memory maps a range within one domain to a local address range. Mappings * should be unmapped with munmap and should follow the same rules as mmap -* regarding page alignment. +* regarding page alignment. Returns NULL on failure. * * In Linux, the ring queue for the control channel is accessible by mapping * the shared_info_frame (from xc_domain_getinfo()) + 2048. The structure
tools/libxc/xc_private.c +23 -23
60 lines not on this page · raw message
Signature · 1 line
A bad analogy is like a leaky screwdriver -- Richard Braakman