OSDN Git Service

staging: mmal-vchiq: Allocate and free components as required
authorDave Stevenson <dave.stevenson@raspberrypi.org>
Tue, 23 Jun 2020 16:41:48 +0000 (18:41 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Jun 2020 14:33:51 +0000 (16:33 +0200)
commit8c589e1794a31e9a381916b0280260ab601e4d6e
tree90c467d102d01d4ee115b6843018d424176c9f78
parentb18ee53ad297264a79cf4ea566663f20786b6455
staging: mmal-vchiq: Allocate and free components as required

The existing code assumed that there would only ever be 4 components,
and never freed the entries once used.
Allow arbitrary creation and destruction of components.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
Signed-off-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
Link: https://lore.kernel.org/r/20200623164235.29566-3-nsaenzjulienne@suse.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/vchiq-mmal/mmal-vchiq.c
drivers/staging/vc04_services/vchiq-mmal/mmal-vchiq.h