diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2016-05-28 07:01:46 +0200 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2016-05-28 17:37:42 +0200 |
commit | e6be18f6d62c1d3b331ae020b76a29c2ccf6b0bf (patch) | |
tree | 2ce62107bbfa2312926f4e1e49ef1300ad67b79d /drivers/scsi/qla2xxx/qla_target.h | |
parent | Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dto... (diff) | |
download | linux-e6be18f6d62c1d3b331ae020b76a29c2ccf6b0bf.tar.xz linux-e6be18f6d62c1d3b331ae020b76a29c2ccf6b0bf.zip |
i2c: dev: use after free in detach
The call to put_i2c_dev() frees "i2c_dev" so there is a use after
free when we call cdev_del(&i2c_dev->cdev).
Fixes: d6760b14d4a1 ('i2c: dev: switch from register_chrdev to cdev API')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_target.h')
0 files changed, 0 insertions, 0 deletions