prima: Fix oem data response length

OEM_DATA_RSP_SIZE is maximum data response length exchanged
between driver and firmware. Currently OEM_DATA_RSP_SIZE is used
always in copying data from SMD. But firmware may not send
OEM_DATA_RSP_SIZE amount of data. This can result in reading from
unauthorized location and thus can lead to crash. Fix this by getting
appropriate length of oem data response and use that length in copying.

Change-Id: I2011aca892e7702ad1991ec0a4c8f7be15d1dedf
CRs-Fixed: 1081497
1 file changed
tree: 9eb1d0d2738738a359259a7c9530ce796e173a81
  1. CORE/
  2. firmware_bin/
  3. riva/
  4. Android.mk
  5. Kbuild
  6. Kconfig
  7. Makefile