summaryrefslogtreecommitdiff
path: root/src/command.c
AgeCommit message (Expand)AuthorFilesLines
2009-05-24New upstream release 15.7a, fixing CVE-2009-014815.7a-1Tobias Klauser1-2/+2
2006-11-13Initial import15.6-2Tobias Klauser1-0/+938
cgit.cgi/linux/net-next.git/commit/?h=nds-private-remove&id=0224a4a30b57385a60065aa598181868881d8fc6'>0224a4a30b57385a60065aa598181868881d8fc6 (patch) treed1cc248a6c1f86a23977e18cf35586315f4a0704 parent02da2d72174c61988eb4456b53f405e3ebdebce4 (diff)
device property: Avoid potential dereferences of invalid pointers
Since fwnode may hold ERR_PTR(-ENODEV) or it may be NULL, the fwnode type checks is_of_node(), is_acpi_node() and is is_pset_node() need to consider it. Using IS_ERR_OR_NULL() to check it. Fixes: 0d67e0fa1664 (device property: fix for a case of use-after-free) Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> [ rjw: Subject & changelog ] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat