Re: [PATCH BlueZ 1/3] audio/avrcp: Fix invalid read

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Thu, Aug 27, 2015 at 4:36 PM, Luiz Augusto von Dentz
<luiz.dentz@xxxxxxxxx> wrote:
> From: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx>
>
> Player pointer cannot be used after being freed.
> ---
>  profiles/audio/avrcp.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/profiles/audio/avrcp.c b/profiles/audio/avrcp.c
> index 76e89af..fa95bf9 100644
> --- a/profiles/audio/avrcp.c
> +++ b/profiles/audio/avrcp.c
> @@ -3942,9 +3942,10 @@ void avrcp_unregister_player(struct avrcp_player *player)
>                         target->player = g_slist_nth_data(server->players, 0);
>         }
>
> -       player_destroy(player);
>         avrcp_player_event(player,
>                                 AVRCP_EVENT_AVAILABLE_PLAYERS_CHANGED, NULL);
> +
> +       player_destroy(player);
>  }
>
>  static gboolean avrcp_handle_set_volume(struct avctp *conn,
> --
> 2.4.3

Applied.


-- 
Luiz Augusto von Dentz
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux