]> git.baikalelectronics.ru Git - kernel.git/commit
staging: most: hdm-usb: Remove invalid reference error
authorAmitoj Kaur Chawla <amitoj1606@gmail.com>
Fri, 11 Mar 2016 18:41:47 +0000 (00:11 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 12 Mar 2016 06:09:09 +0000 (22:09 -0800)
commit3bb6e193dedc1a05c14192781386e75ab574efb2
treef09b01316d2755f70f7661c7b26f3739ecb52ea0
parent5ffbcb541d19328d744b20b3fc10b5f92467697e
staging: most: hdm-usb: Remove invalid reference error

commit a22f6217("staging: most: hdm-usb: Remove create_workqueue()")
cancel_work_sync(&anchor->clear_work_obj) is introduced after freeing
`anchor` causing a invalid reference error. This patch removes this
error by shifting the call to cancel_work_sync before freeing
`anchor`.

Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/most/hdm-usb/hdm_usb.c