Skip to contentSkip to conversation

libxc: mmap doesn't return NULL on error...

PATCH New Rusty Russell 1 participant 1 message May 12, 2005

lore
Share & tools
lore
#0 lore raw

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
diff -urpN --exclude TAGS -X /home/rusty/devel/kernel/kernel-patches/current-dontdiff --minimal base/tools/libxc/xc.h working/tools/libxc/xc.h
@@ -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