Re: [PATCH] accel/rocket: clear rdev on device init failure

From: Heiko Stuebner

Date: Tue Oct 13 2026 - 08:21:42 EST



On Wed, 08 Jul 2026 14:28:45 +0800, Guangshuo Li wrote:
> rocket_probe() stores the return value from rocket_device_init() in the
> file-scoped rdev pointer before checking whether it is an error pointer.
> If rocket_device_init() fails, rdev is left as an ERR_PTR.
>
> The rdev pointer is also used as the marker for whether the shared rocket
> device has already been initialized. A later core probe can therefore see
> a non-NULL rdev, skip rocket_device_init(), and dereference the error
> pointer when reading rdev->num_cores.
>
> [...]

Applied, thanks!

[1/1] accel/rocket: clear rdev on device init failure
commit: 4ac852419f0d317c7bd8db5b8acb3cc78be7fe33

Best regards,
--
Heiko Stuebner <heiko@xxxxxxxxx>