Until I find a way to release arbitrary locks held when sending signals (there
really should not be some), use the M_NOWAIT flag to malloc(9), and panic(9) if malloc(9) fails.
This commit is contained in:
parent
37a0dda0c0
commit
7bf2a42fd5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=104267
@ -50,9 +50,9 @@ ksiginfo_alloc(struct ksiginfo **ksip, int signo)
|
||||
|
||||
error = 0;
|
||||
|
||||
ksi = malloc(sizeof *ksi, M_KSIGINFO, M_ZERO | M_WAITOK);
|
||||
KASSERT(ksi != NULL, ("ksiginfo_alloc(%d): allocation failed.", signo));
|
||||
ksi = malloc(sizeof *ksi, M_KSIGINFO, M_ZERO | M_NOWAIT);
|
||||
if (ksi == NULL) {
|
||||
panic("Unable to allocate kernel signal info structure.");
|
||||
error = ENOMEM;
|
||||
goto out;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user