Skip to content

Commit

Permalink
coresight: fixing validity check on remote device
Browse files Browse the repository at this point in the history
A validity check should be made on the remote device, i.e rdev,
rather than the current device.

Signed-off-by: Kaixu Xia <xiakaixu@huawei.com>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Kaixu Xia authored and Greg Kroah-Hartman committed Jan 12, 2015
1 parent f7c5529 commit 2ccffaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/coresight/of_coresight.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ struct coresight_platform_data *of_get_coresight_platform_data(
continue;

rdev = of_coresight_get_endpoint_device(rparent);
if (!dev)
if (!rdev)
continue;

pdata->child_names[i] = dev_name(rdev);
Expand Down

0 comments on commit 2ccffaf

Please sign in to comment.