[lkml]   [2019]   [Sep]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 5.2 143/143] hsr: implement dellink to clean up resources
On Wed, Sep 04, 2019 at 07:54:46PM +0200, Greg Kroah-Hartman wrote:
>From: Cong Wang <>
>commit b9a1e627405d68d475a3c1f35e685ccfb5bbe668 upstream.
>hsr_link_ops implements ->newlink() but not ->dellink(),
>which leads that resources not released after removing the device,
>particularly the entries in self_node_db and node_db.
>So add ->dellink() implementation to replace the priv_destructor.
>This also makes the code slightly easier to understand.
>Cc: Arvid Brodin <>
>Signed-off-by: Cong Wang <>
>Signed-off-by: David S. Miller <>
>Signed-off-by: Greg Kroah-Hartman <>

If the airport gods cooperate, I'm going to queue:

edf070a0fb45a ("hsr: fix a NULL pointer deref in hsr_dev_xmit()")
311633b604063 ("hsr: switch ->dellink() to ->ndo_uninit()")

as fixes for this commit.


 \ /
  Last update: 2019-09-04 23:21    [W:0.342 / U:0.092 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site