Re: [PATCH] kernel/fork.c : remove redundant NULL check in dup_mm()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 11/28, Daeseok Youn wrote:
>
> --- a/kernel/fork.c
> +++ b/kernel/fork.c
> @@ -804,9 +804,6 @@ struct mm_struct *dup_mm(struct task_struct *tsk)
>  	struct mm_struct *mm, *oldmm = current->mm;
>  	int err;
>  
> -	if (!oldmm)
> -		return NULL;
> -
>  	mm = allocate_mm();
>  	if (!mm)
>  		goto fail_nomem;

Acked-by: Oleg Nesterov <oleg@xxxxxxxxxx>

--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux