diff options
| author | Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> | 2015-01-27 13:01:45 -0500 |
|---|---|---|
| committer | Bjorn Helgaas <bhelgaas@google.com> | 2015-01-28 18:08:20 -0500 |
| commit | d2be00c0fb5ae0794deffcdb0425cd5a8d823db0 (patch) | |
| tree | 6f0a31e8a236f9278c15b40988f4ea23fbfdc496 /include/linux/compiler-clang.h | |
| parent | 97bf6af1f928216fd6c5a66e8a57bfa95a659672 (diff) | |
of/pci: Free resources on failure in of_pci_get_host_bridge_resources()
In the function of_pci_get_host_bridge_resources() if the parsing of ranges
fails, previously allocated resources inclusive of bus_range are not freed
and are not expected to be freed by the
* as published by the Free Software Foundation; either version
* 2 of the Licence, or (at your option) any later version.
*/
#include <linux/sched.h>
/*
* Returns true if the task does not share ->mm with another thread/process.
*/
bool current_is_single_threaded(void)
{
struct task_struct *task = current;
struct mm_struct *mm = task->mm;zx2c4.com/cgit/about/'>cgit v1.2.2 (git 2.25.0) at 2026-06-15 08:14:01 -0400
