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
This commit is contained in:
marcel 2006-02-07 02:02:14 +00:00
parent a1af4bcfbd
commit a331877ad8

View File

@ -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);