Message ID | 20230824061308.222021-4-sergeantsagara@protonmail.com (mailing list archive) |
---|---|
State | Mainlined |
Commit | 197d3143520fec9fde89aebabc9f0d7464f08e50 |
Delegated to: | Jiri Kosina |
Headers | show |
Series | Fix devm references used in HID drivers when allocating input_dev name | expand |
diff --git a/drivers/hid/hid-nvidia-shield.c b/drivers/hid/hid-nvidia-shield.c index a928ad2be62d..084179a6be86 100644 --- a/drivers/hid/hid-nvidia-shield.c +++ b/drivers/hid/hid-nvidia-shield.c @@ -164,7 +164,7 @@ static struct input_dev *shield_allocate_input_dev(struct hid_device *hdev, idev->id.product = hdev->product; idev->id.version = hdev->version; idev->uniq = hdev->uniq; - idev->name = devm_kasprintf(&idev->dev, GFP_KERNEL, "%s %s", hdev->name, + idev->name = devm_kasprintf(&hdev->dev, GFP_KERNEL, "%s %s", hdev->name, name_suffix); if (!idev->name) goto err_name;