Module Name: src Committed By: rmind Date: Mon Apr 18 03:04:31 UTC 2011
Modified Files: src/sys/arch/xen/xen: balloon.c Log Message: balloon_xenbus_attach: use KM_SLEEP for allocation. Note: please do not use KM_NOSLEEP. To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/sys/arch/xen/xen/balloon.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/xen/xen/balloon.c diff -u src/sys/arch/xen/xen/balloon.c:1.7 src/sys/arch/xen/xen/balloon.c:1.8 --- src/sys/arch/xen/xen/balloon.c:1.7 Mon Apr 18 01:36:25 2011 +++ src/sys/arch/xen/xen/balloon.c Mon Apr 18 03:04:31 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: balloon.c,v 1.7 2011/04/18 01:36:25 jym Exp $ */ +/* $NetBSD: balloon.c,v 1.8 2011/04/18 03:04:31 rmind Exp $ */ /*- * Copyright (c) 2010 The NetBSD Foundation, Inc. @@ -71,7 +71,7 @@ #define BALLOONDEBUG 0 #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: balloon.c,v 1.7 2011/04/18 01:36:25 jym Exp $"); +__KERNEL_RCSID(0, "$NetBSD: balloon.c,v 1.8 2011/04/18 03:04:31 rmind Exp $"); #include <sys/inttypes.h> #include <sys/device.h> @@ -229,11 +229,7 @@ sysctl_kern_xen_balloon_setup(sc); /* List of MFNs passed from/to balloon for inflating/deflating */ - mfn_list = kmem_alloc(BALLOON_DELTA * sizeof(*mfn_list), KM_NOSLEEP); - if (mfn_list == NULL) { - aprint_error_dev(self, "could not allocate mfn_list\n"); - goto error; - } + mfn_list = kmem_alloc(BALLOON_DELTA * sizeof(*mfn_list), KM_SLEEP); sc->sc_mfn_list = mfn_list; /* Setup xenbus node watch callback */