aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/kern_sig.c
diff options
context:
space:
mode:
authorRui Paulo <rpaulo@FreeBSD.org>2015-02-11 19:07:05 +0000
committerRui Paulo <rpaulo@FreeBSD.org>2015-02-11 19:07:05 +0000
commitb5263b26db5eabf66b1572f22928d8a73b191ac7 (patch)
tree1435ee16a96e12aee330d34934e4adf4ca845a4b /sys/kern/kern_sig.c
parent399d34850fe953934b6516ac78dfc3c7aed1e10f (diff)
downloadsrc-b5263b26db5eabf66b1572f22928d8a73b191ac7.tar.gz
src-b5263b26db5eabf66b1572f22928d8a73b191ac7.zip
Remove check against NULL after M_WAITOK.
Submitted by: Oliver Pinter
Notes
Notes: svn path=/head/; revision=278592
Diffstat (limited to 'sys/kern/kern_sig.c')
-rw-r--r--sys/kern/kern_sig.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c
index 9eb6c0e0d26b..41da3dd1b26f 100644
--- a/sys/kern/kern_sig.c
+++ b/sys/kern/kern_sig.c
@@ -3362,8 +3362,6 @@ close:
len = MAXPATHLEN * 2 + sizeof(comm_name) - 1 +
sizeof(' ') + sizeof(core_name) - 1;
data = malloc(len, M_TEMP, M_WAITOK);
- if (data == NULL)
- goto out;
if (vn_fullpath_global(td, p->p_textvp, &fullpath, &freepath) != 0)
goto out;
if (!coredump_sanitise_path(fullpath))