summaryrefslogtreecommitdiff
path: root/include/drm
diff options
context:
space:
mode:
authorAdrian Hunter <adrian.hunter@intel.com>2021-07-16 14:44:07 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-07-28 14:35:47 +0200
commit2831eeb7bc3d6b2b1ddcd488f7ccfc60ff21808e (patch)
tree3bedc0cf188591e179d6204d6fcb2c9f430d17e3 /include/drm
parent0e759383236a2264f3fcbbb8c338d5b3121cfe83 (diff)
driver core: Prevent warning when removing a device link from unregistered consumer
commit e64daad660a0c9ace3acdc57099fffe5ed83f977 upstream. sysfs_remove_link() causes a warning if the parent directory does not exist. That can happen if the device link consumer has not been registered. So do not attempt sysfs_remove_link() in that case. Fixes: 287905e68dd29 ("driver core: Expose device link details in sysfs") Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Cc: stable@vger.kernel.org # 5.9+ Reviewed-by: Rafael J. Wysocki <rafael@kernel.org> Link: https://lore.kernel.org/r/20210716114408.17320-2-adrian.hunter@intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/drm')
0 files changed, 0 insertions, 0 deletions