]> git.hungrycats.org Git - linux/commit
staging: vchiq_arm: Get the rid off struct vchiq_2835_state
authorStefan Wahren <wahrenst@gmx.net>
Fri, 21 Jun 2024 13:19:53 +0000 (15:19 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Jun 2024 13:26:56 +0000 (15:26 +0200)
commit4e2766102da632f26341d5539519b0abf73df887
treefa681bd59aa1c2cbd7e05f80cca85d6f3d6196d8
parent935cb7670d378a1a3b3fc52790d355c4c9520335
staging: vchiq_arm: Get the rid off struct vchiq_2835_state

The whole benefit of this encapsulating struct is questionable.
It just stores a flag to signalize the init state of vchiq_arm_state.
Beside the fact this flag is set too soon, the access to uninitialized
members should be avoided. So initialize vchiq_arm_state properly before
assign it directly to vchiq_state.

Signed-off-by: Stefan Wahren <wahrenst@gmx.net>
Link: https://lore.kernel.org/r/20240621131958.98208-6-wahrenst@gmx.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c