media: rtl2832_sdr: clean the freed pointer and counter
authorNil Yi <teroincn@163.com>
Sat, 14 Aug 2021 09:40:09 +0000 (11:40 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Fri, 8 Oct 2021 11:54:16 +0000 (13:54 +0200)
commitcefdc9510a16f59de6ff82ed90c841545ec0aa13
tree2e6e0be29f6ea22a2ea9ccc25ac2260eb2baee59
parent69a10678e2fba3d182e78ea041f2d1b1a6058764
media: rtl2832_sdr: clean the freed pointer and counter

After freed the dev->urb_list, we should set it to NULL as well as set
counter to zero.

Requested-by: Sean Young <sean@mess.org>
Signed-off-by: Nil Yi <teroincn@163.com>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/dvb-frontends/rtl2832_sdr.c