Project

General

Profile

Actions

Task #7958

open

Never directly free @dev after calling device_add function

Added by Vadim Mutilin about 7 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Start date:
02/07/2017
Due date:
% Done:

0%

Estimated time:
Detected in build:
svn
Published in build:

Description

http://lxr.free-electrons.com/source/drivers/base/core.c?v=4.2#L976

972  * NOTE: _Never_ directly free @dev after calling this function, even
973  * if it returned an error! Always use put_device() to give up your
974  * reference instead.
975  */
976 int device_add(struct device *dev)

No data to display

Actions

Also available in: Atom PDF