]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
dp83640: reverse arguments to list_add_tail
authorJulia Lawall <Julia.Lawall@inria.fr>
Thu, 30 Apr 2020 19:51:32 +0000 (21:51 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 14 May 2020 05:57:17 +0000 (07:57 +0200)
commit9667042cbe58c57b41b66499de2149d41d249486
tree2739e15073e157b6a9194b9955759af45c679bbd
parenta3da2984a40b2628d43a0b380e9b24d6fb74a76e
dp83640: reverse arguments to list_add_tail

[ Upstream commit 865308373ed49c9fb05720d14cbf1315349b32a9 ]

In this code, it appears that phyter_clocks is a list head, based on
the previous list_for_each, and that clock->list is intended to be a
list element, given that it has just been initialized in
dp83640_clock_init.  Accordingly, switch the arguments to
list_add_tail, which takes the list head as the second argument.

Fixes: cb646e2b02b27 ("ptp: Added a clock driver for the National Semiconductor PHYTER.")
Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/phy/dp83640.c