media: dw100: Add a missing unwind goto in dw100_probe()
authorXavier Roumegue <xavier.roumegue@oss.nxp.com>
Tue, 3 Jan 2023 10:55:34 +0000 (11:55 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sun, 22 Jan 2023 08:26:14 +0000 (09:26 +0100)
commit0d828fd50c73d30da3c0d52a31c6f3ede2498020
treeaeb0a7706043b619536cb4ae7ded55c160e8e5e9
parentde655386845ade57f964dd31020cdd7a11925872
media: dw100: Add a missing unwind goto in dw100_probe()

In case the IRQ allocation returns an error in dw100_probe(), the pm
runtime is not disabled before to return.

Add the missing unwind goto on the error handling path of the IRQ
allocation request.

Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Xavier Roumegue <xavier.roumegue@oss.nxp.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/nxp/dw100/dw100.c