CVE-2026-45978: staging: greybus: lights: avoid NULL deref
In the Linux kernel, the following vulnerability has been resolved:
staging: greybus: lights: avoid NULL deref
gblightslightconfig() stores channelcount before allocating the channels array. If kcalloc() fails, gblightsrelease() iterates the non-zero count and dereferences light->channels, which is NULL.
Allocate channels first and only then publish channelscount so the cleanup path can't walk a NULL pointer.