lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Message-Id: <20190412183150.102131-5-sboyd@kernel.org> Date: Fri, 12 Apr 2019 11:31:45 -0700 From: Stephen Boyd <sboyd@...nel.org> To: Michael Turquette <mturquette@...libre.com>, Stephen Boyd <sboyd@...nel.org> Cc: linux-kernel@...r.kernel.org, linux-clk@...r.kernel.org, Miquel Raynal <miquel.raynal@...tlin.com>, Jerome Brunet <jbrunet@...libre.com>, Russell King <linux@...linux.org.uk>, Jeffrey Hugo <jhugo@...eaurora.org>, Chen-Yu Tsai <wens@...e.org>, Greg Kroah-Hartman <gregkh@...uxfoundation.org>, Rob Herring <robh@...nel.org> Subject: [PATCH v4 4/9] driver core: Let dev_of_node() accept a NULL dev We'd like to chain this in places where the 'dev' argument might be NULL. Let this function take a NULL 'dev' so this can work. Cc: Miquel Raynal <miquel.raynal@...tlin.com> Cc: Jerome Brunet <jbrunet@...libre.com> Cc: Russell King <linux@...linux.org.uk> Cc: Michael Turquette <mturquette@...libre.com> Cc: Jeffrey Hugo <jhugo@...eaurora.org> Cc: Chen-Yu Tsai <wens@...e.org> Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org> Cc: Rob Herring <robh@...nel.org> Signed-off-by: Stephen Boyd <sboyd@...nel.org> --- Please ack/review so I can take this through clk tree. include/linux/device.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/device.h b/include/linux/device.h index b425a7ee04ce..0370dd0b3ae7 100644 --- a/include/linux/device.h +++ b/include/linux/device.h @@ -1231,7 +1231,7 @@ static inline void device_lock_assert(struct device *dev) static inline struct device_node *dev_of_node(struct device *dev) { - if (!IS_ENABLED(CONFIG_OF)) + if (!IS_ENABLED(CONFIG_OF) || !dev) return NULL; return dev->of_node; } -- Sent by a computer through tubes
Powered by blists - more mailing lists