Re: [PATCH] Bluetooth: Fix possible NULL pointer dereference in cmd_complete
From: Gustavo F. Padovan <hidden> Date: 2011-02-28 17:32:09
Hi Szymon,
* Szymon Janc [off-list ref] [2011-02-28 14:09:50 +0100]:
It is now possible to create command complete event without specific
reply data by passing NULL as reply with len 0. Check pointer before
calling memcpy to avoid undefined behaviour.
---
net/bluetooth/mgmt.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)