Commit 1b8cb9290671a4c025c16a51d316031f9ec04976
Committed by
Greg Kroah-Hartman
1 parent
45f035ab9b
Exists in
master
and in
20 other branches
driver core: Check if r->name is valid in platform_get_resource_byname()
Safety check for the validity of the resource name before calling strcmp(). If the resource name is NULL do not compare it, just skip it. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Showing 1 changed file with 3 additions and 0 deletions Side-by-side Diff
drivers/base/platform.c