OSDN Git Service

media: atomisp: free PCI resources when probing fail
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Fri, 8 May 2020 09:27:39 +0000 (11:27 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 20 May 2020 12:51:28 +0000 (14:51 +0200)
commit25bccb98ae05c06edc0c31cb82e6bf105124855c
tree6f81a13d0a36c5a9c8f9fa3eb2fe56aad742e9f9
parent33c24f8f5a2716824bb0af959d7eb87c94133cfc
media: atomisp: free PCI resources when probing fail

The atomisp probe error logic is incomplete. Add the missing
bits to return the PCI device to its original state.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/atomisp/pci/atomisp_v4l2.c