summaryrefslogtreecommitdiff
path: root/drivers/mmc
diff options
context:
space:
mode:
authorJernej Skrabec <jernej.skrabec@siol.net>2018-06-25 14:02:46 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-10-03 17:01:46 -0700
commit7b4a09d167ebed0a6e10695cdfd7e0410057008a (patch)
treecce3150c0719bb41ecae19e5760b493e52e7dabe /drivers/mmc
parenta5a849c9e8a6c357f84a5e249cb468f20da6d28f (diff)
drm/sun4i: Fix releasing node when enumerating enpoints
[ Upstream commit 367c359aa8637b15ee8df6335c5a29b7623966ec ] sun4i_drv_add_endpoints() has a memory leak since it uses of_node_put() when remote is equal to NULL and does nothing when remote has a valid pointer. Invert the logic to fix memory leak. Signed-off-by: Jernej Skrabec <jernej.skrabec@siol.net> Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com> Link: https://patchwork.freedesktop.org/patch/msgid/20180625120304.7543-7-jernej.skrabec@siol.net Signed-off-by: Sasha Levin <alexander.levin@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/mmc')
0 files changed, 0 insertions, 0 deletions