[PATCH 5.16 0807/1017] media: ir_toy: free before error exiting