Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753643AbdHXSvH (ORCPT ); Thu, 24 Aug 2017 14:51:07 -0400 Received: from mail-oi0-f65.google.com ([209.85.218.65]:33198 "EHLO mail-oi0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753612AbdHXSvG (ORCPT ); Thu, 24 Aug 2017 14:51:06 -0400 MIME-Version: 1.0 In-Reply-To: <87y3q8ermg.fsf@xmission.com> References: <20170816171211.4021-1-christian.brauner@ubuntu.com> <87pobvruzt.fsf@xmission.com> <87ziazqdfr.fsf@xmission.com> <20170824022436.44adb497@mir> <87378hhi3y.fsf@xmission.com> <87wp5tfynr.fsf@xmission.com> <20170824062432.1e05e6f8@mir> <874lsxezal.fsf@xmission.com> <87y3q8ermg.fsf@xmission.com> From: Linus Torvalds Date: Thu, 24 Aug 2017 11:51:05 -0700 X-Google-Sender-Auth: KsX57b-Wcaa2qIZbsQ3vT-RYYGo Message-ID: Subject: Re: [PATCH 0/1] devpts: use dynamic_dname() to generate proc name To: "Eric W. Biederman" Cc: Stefan Lippers-Hollmann , Christian Brauner , Christian Brauner , Linux Kernel Mailing List , "Serge E. Hallyn" , Al Viro , Thorsten Leemhuis Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 495 Lines: 17 On Thu, Aug 24, 2017 at 11:40 AM, Eric W. Biederman wrote: > > Here is my tested version of the patch. Can you please take my cleanups to devpts_ptmx_path() too? Those 'goto err' statements are disgusting, when a plain 'return -ERRNO' works cleaner. And that "struct file *filp = NULL;" is bogus - you added the NULL initialization because you mis-used "filp" early, and with that fixed it's just garbage. Other than that, it looks fine to me. Linus