Bug 78521
Summary: | Missing NULL check of the return value of platform_device_add_data() in function pcf50633_probe() | ||
---|---|---|---|
Product: | Drivers | Reporter: | RUC_Soft_Sec (rucsoftsec) |
Component: | Other | Assignee: | drivers_other |
Status: | NEW --- | ||
Severity: | normal | CC: | lee.jones, sameo, xerofoify |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 2.6.39 | Subsystem: | |
Regression: | No | Bisected commit-id: |
Description
RUC_Soft_Sec
2014-06-20 12:37:54 UTC
if (platform_device_add_data(pdev, &pdata->reg_init_data[i], sizeof(pdata->reg_init_data[i])) < 0) { platform_device_put(pdev); dev_err(pcf->dev, "Out of memory for regulator parameters %d\n",i); continue; } Seems to fix around NULL pointer check you have sent. I am going to email the maintainers in order to tell then that this bug has a code fix as you don't seem to being to reply to these messages. Nick |