radio-iris: Add buffer overflow checks to Default Data Write ioctl

Copy only the requested amount of data specified by the user as
part of the FM Default Data Write HCI command.
Sending additional default data than requested by the user
causes data abort in WNCSS and results in WLAN crash.

CRs-Fixed: 356330
Change-Id: Icd87f2357ca53c3fa66d703e0e6f373c01b7023c
Signed-off-by: Anantha Krishnan <ananthk@codeaurora.org>
1 file changed