Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp6821984ybl; Wed, 15 Jan 2020 10:43:09 -0800 (PST) X-Google-Smtp-Source: APXvYqygdcfRXdbZhIbEW+shZw0I1pDroCikgvM08TkFzL46+8D90t/0GSUAYvv/suJkYxAWTU+q X-Received: by 2002:a9d:1d02:: with SMTP id m2mr3524754otm.45.1579113789075; Wed, 15 Jan 2020 10:43:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579113789; cv=none; d=google.com; s=arc-20160816; b=Qf2a70CvtDkuqKZhicATdh+VEP10SqVKfejDNtm4+aMn7U36jFhUKKUFakc0uF9DtX nuOKoy0p1JT0ATdtWtEmbCiWwrEXfX7GAWLfzUuiF09SQ8joeEhD6ZAv3nwHS55Arhk+ tuOJsFMQQgr1pCstlJaUGWbt8wU648Qb0003Qgbl/Ff+UY6Y/C3GwoTkhSWF0l0+XRji Nk13JYGgkr2C1ypONS91gJcC2MepJ9KyMSEVv2xJ2LjRY8JRwKI1ynQ8gSfn0jRWiuHK brwkbYFwNihteoiraiPuvLbAIhN4X+ansRm76uAyM+IquuJsfNklm9gheUzcY38jq3PD 5QZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=iyWBDBGdPhZMQqYEB7vExUBhfJttJz4+TuTF/gXP4z8=; b=MCn048jtH17wZf4puZBeXntMfifdpOg55RsY3lonCCLqEs7cNXIKa+lEUPtXqKcrKS yiSthOOzZ9dCGSfNzqsB0QuTrba5zWSZlCzT4uGPANfRyXelDhjYqwthfze0I/2LIyKH +Z0g9iwfD265Ycu06Rr9zMDOza2w78UN+mT2SI9n+z7zd3rASfVbd1MSTK8eLM+GiPBP HoLuRv+y++lZXVMCGKhInkFr5wYEjQlhJyGDdazMd0yqdBP+Yr/xbHKNwedxCUOr2M+J XViq0caqct90mYJN+LlBMNxd20y/jsD54f7dNpw0yZYOpA0WX8VtPJT3gRY0nkL9Wbx6 lUYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=EqtZjz+g; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y3si11162549oto.98.2020.01.15.10.42.56; Wed, 15 Jan 2020 10:43:09 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=EqtZjz+g; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729157AbgAOSmB (ORCPT + 99 others); Wed, 15 Jan 2020 13:42:01 -0500 Received: from mail-lj1-f193.google.com ([209.85.208.193]:41907 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728949AbgAOSmB (ORCPT ); Wed, 15 Jan 2020 13:42:01 -0500 Received: by mail-lj1-f193.google.com with SMTP id h23so19696509ljc.8 for ; Wed, 15 Jan 2020 10:41:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=iyWBDBGdPhZMQqYEB7vExUBhfJttJz4+TuTF/gXP4z8=; b=EqtZjz+g7EGskQnkixkXn9XrbxTLYToHq+lcUM1leSzTLzazIwT6Rm17EJTEo2I7dn /jMMXg6VTujHKsduqV5l/DgLUBmXuJjmqd4akcNhygAVtHa+vWcYPrTzl/kiuM+PacAz Wz703GEgGoSEeSwRpyWsEJIXkN8U1RGXyZzNI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=iyWBDBGdPhZMQqYEB7vExUBhfJttJz4+TuTF/gXP4z8=; b=idz68XJLi4jR6I0A+m2ADvGVS4nznmzL8Vy7bAfVyGFh5QRmfsUM2o3TI0KJrtOSqV l8zPn0GqxSbxfc1ydB3bpo4NoyONxFZdnQF2+RUUuSXkTJ+6yuVtYWyGlTjX9OhzbX2T SATMFeCnowtY66nHnxs2+/Q3ILRJ0M68oE2tlT/n2EVFnMyQhBSng9qt4YK7TV+qwpZ4 7CWva+824ClVOkGX9AbS2hf9y7HvUv2mnkNGlciHxKu9rVFNnYM4GPrUZWOLJVw5BaUg KhpdxDbJsaVaJ2iorinoXjGTOZSCQNhFNcdnZCF3TQB7Ykl4MAehaEfAQUVlA/3iL44l azFA== X-Gm-Message-State: APjAAAXxgcMcC6A7y9s/6YEs+Unzrq3CAoFD9UqHQsLc5rNjPnwC3+jU PQuzsA8sMXtA+7N8dmBjN6mtSA== X-Received: by 2002:a2e:8eda:: with SMTP id e26mr2776311ljl.65.1579113717180; Wed, 15 Jan 2020 10:41:57 -0800 (PST) Received: from prevas-ravi.prevas.se ([81.216.59.226]) by smtp.gmail.com with ESMTPSA id 21sm9598631ljv.19.2020.01.15.10.41.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jan 2020 10:41:56 -0800 (PST) From: Rasmus Villemoes To: Greg Kroah-Hartman , "Rafael J. Wysocki" , linux-kernel@vger.kernel.org Cc: Rasmus Villemoes Subject: [PATCH 0/5] a few devtmpfs patches Date: Wed, 15 Jan 2020 19:41:48 +0100 Message-Id: <20200115184154.3492-1-linux@rasmusvillemoes.dk> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Patch 1 fixes a mostly theoretical problem, but as this is core code, the pattern might be copy-pasted, so it might as well be fixed. The remaining ones reduce memory footprint a bit by initifying a function and factoring out common code. Rasmus Villemoes (5): devtmpfs: fix theoretical stale pointer deref in devtmpfsd() devtmpfs: factor out setup part of devtmpfsd() devtmpfs: simplify initialization of mount_dev devtmpfs: initify a bit devtmpfs: factor out common tail of devtmpfs_{create,delete}_node drivers/base/devtmpfs.c | 79 ++++++++++++++++++++--------------------- 1 file changed, 39 insertions(+), 40 deletions(-) -- 2.23.0