wlan: fix buffer overflow in linkspeed ioctl

cld to prima propagation.

In linkspeed ioctl handler, mac address array is allocated a
size of MAC_ADDRESS_STR_LEN, which is 18 bytes taking account of null
terminator '\0'. But in code, a null terminator is being manually added
at index MAC_ADDRESS_STR_LEN. This would overflow the buffer and hence
null terminator should be added at MAC_ADDRESS_STR_LEN -1.

Change-Id: I16c2d0f787dfa339780db7d888aff37355c32322
CRs-fixed: 1000861
1 file changed
tree: 7ce32c6a4d3325b8e18fd0ab4b6ae58537b07cae
  1. CORE/
  2. firmware_bin/
  3. riva/
  4. Android.mk
  5. Kbuild
  6. Kconfig
  7. Makefile