Skip to content
  1. Oct 04, 2023
    • Tomi Valkeinen's avatar
      media: rp1: cfe: Fix use of freed memory on errors · 3922bebc
      Tomi Valkeinen authored
      
      
      cfe_probe_complete() calls cfe_put() on both success and fail code paths.
      This works for the success path, but causes the cfe_device struct to be
      freed, even if it will be used later in the teardown code.
      
      Fix this by making the ref handling a bit saner: Let the video nodes
      have the refs as they do now, but also keep a ref in the "main" driver,
      released only at cfe_remove() time. This way the driver does not depend
      on the video nodes keeping the refs.
      
      Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ideasonboard.com>
      3922bebc
  2. Oct 03, 2023
  3. Sep 30, 2023
  4. Sep 29, 2023