patch-2.4.15 linux/net/bluetooth/hci_core.c

Next file: linux/net/bridge/br_stp_bpdu.c
Previous file: linux/net/atm/resources.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.14/linux/net/bluetooth/hci_core.c linux/net/bluetooth/hci_core.c
@@ -891,7 +891,7 @@
 
 	/* Limit inquiry time, also avoid overflows */
 
-	if(ir.length > 2048)
+	if(ir.length > 2048 || ir.num_rsp > 2048)
 	{
 		err = -EINVAL;
 		goto done;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)