asoc: Add check to handle negative value passed for num_app_cfg_type
Long int negative value passed as part of ucontrol structure
is assigned to int num_app_cfg_type making it positive and
leading to overflow while populating maximum supported
lsm_app_type_cfg structures.
Change-Id: Idd0be79e97bd0a1f5d0ba4461acf1bc770a6fce9
Signed-off-by:
Harshal Ahire <hahire@codeaurora.org>
Loading
Please register or sign in to comment