Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1394720
| From | "Rafael J. Wysocki" <rjw@rjwysocki.net> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] device property: fix a potential oops |
| Date | 2016-05-04 23:10 +0200 |
| Message-ID | <rvcds-30d-23@gated-at.bofh.it> (permalink) |
| References | <rsvvX-8S-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Wednesday, April 27, 2016 02:04:20 PM Heikki Krogerus wrote:
> Since fwnode may hold ERR_PTR(-ENODEV) or it may point to
> 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>
Applied, thanks!
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
Re: [PATCH] device property: fix a potential oops "Rafael J. Wysocki" <rjw@rjwysocki.net> - 2016-05-04 23:10 +0200
csiph-web