summaryrefslogtreecommitdiffstats
path: root/sys/ia64
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2006-02-07 02:02:14 +0000
committermarcel <marcel@FreeBSD.org>2006-02-07 02:02:14 +0000
commita331877ad8685ac5e4fb009757dc9d6e6b1c48b0 (patch)
treec3fa1a31455cf75c6ddd8125b3972a36aea1f5ec /sys/ia64
parenta1af4bcfbd3d8ae9e1489758061243e6b96bfcf4 (diff)
downloadFreeBSD-src-a331877ad8685ac5e4fb009757dc9d6e6b1c48b0.zip
FreeBSD-src-a331877ad8685ac5e4fb009757dc9d6e6b1c48b0.tar.gz
Allocate memory for the MCA state information with M_NOWAIT. We can
get a MCA event at any moment and it may not be safe to sleep. MFC after: 3 days
Diffstat (limited to 'sys/ia64')
-rw-r--r--sys/ia64/ia64/mca.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/ia64/ia64/mca.c b/sys/ia64/ia64/mca.c
index 9f67dbe..dbec087 100644
--- a/sys/ia64/ia64/mca.c
+++ b/sys/ia64/ia64/mca.c
@@ -109,7 +109,7 @@ ia64_mca_save_state(int type)
mtx_unlock_spin(&mca_info_block_lock);
totsz = sizeof(struct sysctl_oid) + recsz + 32;
- oidp = malloc(totsz, M_MCA, M_WAITOK|M_ZERO);
+ oidp = malloc(totsz, M_MCA, M_NOWAIT|M_ZERO);
state = (char*)(oidp + 1);
name = state + recsz;
sprintf(name, "%lld", (long long)seqnr);
OpenPOWER on IntegriCloud