From: Johan Hedberg Date: Wed, 14 Dec 2011 22:47:41 +0000 (+0200) Subject: Bluetooth: Use correct struct for user_confirm_neg_reply X-Git-Tag: v3.3-rc1~182^2~44^2~71^2~7 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=c9c2659f1ea84f860af82cac504cc58f17067523;p=~emulex%2Finfiniband.git Bluetooth: Use correct struct for user_confirm_neg_reply This patch fixes user_confirm_neg_reply to use the appropriate struct for accessing the call parameters. Signed-off-by: Johan Hedberg Acked-by: Marcel Holtmann Signed-off-by: Gustavo F. Padovan --- diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c index 6cb8c7f708b..8413f55cc13 100644 --- a/net/bluetooth/mgmt.c +++ b/net/bluetooth/mgmt.c @@ -1690,7 +1690,7 @@ static int user_confirm_reply(struct sock *sk, u16 index, void *data, u16 len) static int user_confirm_neg_reply(struct sock *sk, u16 index, void *data, u16 len) { - struct mgmt_cp_user_confirm_reply *cp = (void *) data; + struct mgmt_cp_user_confirm_neg_reply *cp = data; BT_DBG("");