diff options
author | Marcel Moolenaar <marcel@FreeBSD.org> | 2006-02-07 02:02:14 +0000 |
---|---|---|
committer | Marcel Moolenaar <marcel@FreeBSD.org> | 2006-02-07 02:02:14 +0000 |
commit | f9d7b4d515bfca10488b1f222f048efec65152bd (patch) | |
tree | c3fa1a31455cf75c6ddd8125b3972a36aea1f5ec /sys/ia64 | |
parent | 09daf1c828e69a9dcee1a730e29d087b558183bb (diff) | |
download | src-f9d7b4d515bfca10488b1f222f048efec65152bd.tar.gz src-f9d7b4d515bfca10488b1f222f048efec65152bd.zip |
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
Notes
Notes:
svn path=/head/; revision=155410
Diffstat (limited to 'sys/ia64')
-rw-r--r-- | sys/ia64/ia64/mca.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/ia64/ia64/mca.c b/sys/ia64/ia64/mca.c index 9f67dbed1c17..dbec087fe342 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); |