On Wed, Jun 20, 2012 at 5:41 AM, Rajendra Nayak <rna...@ti.com> wrote:
>>
>> +       /* Look for the platform device for the constraint target device
>> */
>> +       pdev = to_platform_device(dev_pm_qos_req->dev);
>> +
>> +       /* Try to catch non platform devices */
>> +       if (pdev->name == NULL) {
>
>
> Is this a safe way to catch non platform devices?

in addition, we should check !pdev before attempting to dereference
and check for pdev->name

Regards,
Nishanth Menon
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to