platform: msm_shared: add parameters check for memory allocation

Add parameters check for usb descriptor allocation.

Change-Id: I485aea7eff8ff9c55bfe83f9a4f3fade5d82f4c2
2 files changed