Commits
![Wenwen Wang](https://secure.gravatar.com/avatar/caaf3df4bea798e2d2a366acfdab2aa6.jpg?s=96&d=mm)
Wenwen Wang committed 42e64117d3b
media: saa7146: add cleanup in hexium_attach() If saa7146_register_device() fails, no cleanup is executed, leading to memory/resource leaks. To fix this issue, perform necessary cleanup work before returning the error. Signed-off-by: Wenwen Wang <wenwen@cs.uga.edu> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>