xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] Fix mmap return checking
@ 2014-07-28 16:05 Don Slutz
  2014-07-28 16:05 ` [PATCH 1/4] libxc/xc_linux_osdep.c: Fix return handling for case of mmap failure Don Slutz
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Don Slutz @ 2014-07-28 16:05 UTC (permalink / raw)
  To: xen-devel
  Cc: Daniel De Graaf, Ian Jackson, Ian Campbell, Don Slutz,
	Stefano Stabellini

On Linux MAP_FAILED is not the same as NULL.

Since lots of other calls check for MAP_FAILED, fix to use
MAP_FAILED.

tools/blktap/drivers/tapdisk.c does check for -1 not MAP_FAILED.  I
did not change since it was not clearly wrong.


Don Slutz (3):
  loadpolicy.c: Fix return handling for case of mmap failure
  libxl_internal.c: Fix return handling for case of mmap failure
  xenbaked.c: Fix return handling for case of mmap failure

Harry Hart (1):
  libxc/xc_linux_osdep.c: Fix return handling for case of mmap failure

 tools/flask/utils/loadpolicy.c | 2 +-
 tools/libxc/xc_linux_osdep.c   | 5 +++++
 tools/libxl/libxl_internal.c   | 2 +-
 tools/xenmon/xenbaked.c        | 2 +-
 4 files changed, 8 insertions(+), 3 deletions(-)

-- 
1.8.4

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-07-31  1:11 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-28 16:05 [PATCH 0/4] Fix mmap return checking Don Slutz
2014-07-28 16:05 ` [PATCH 1/4] libxc/xc_linux_osdep.c: Fix return handling for case of mmap failure Don Slutz
2014-07-30 11:42   ` Ian Campbell
2014-07-31  1:11     ` Don Slutz
2014-07-28 16:06 ` [PATCH 2/4] loadpolicy.c: " Don Slutz
2014-07-28 16:06 ` [PATCH 3/4] libxl_internal.c: " Don Slutz
2014-07-28 16:06 ` [PATCH 4/4] xenbaked.c: " Don Slutz
2014-07-30 11:58 ` [PATCH 0/4] Fix mmap return checking Ian Campbell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).