func: static void CVE_2014_3182_VULN_logi_dj_recv_add_djhid_device(struct dj_receiver_dev struct dj_report *dj_report) struct hid_device * dj_hiddev ; unsigned char tmpstr [ 3 ] ; if ( dj_report -> report_params [ DEVICE_PAIRED_PARAM_SPFUNCTION ] & SPFUNCTION_DEVICE_LIST_EMPTY )  if ( ( dj_report -> device_index < DJ_DEVICE_INDEX_MIN ) || ( dj_report -> device_index > DJ_DEVICE_INDEX_MAX ) )  if ( djrcv_dev -> paired_dj_devices [ dj_report -> device_index ] )  dj_hiddev = hid_allocate_device ( ); if ( IS_ERR ( dj_hiddev ) )  snprintf ( tmpstr , sizeof ( tmpstr ) , ":%d" , dj_report -> device_index ); strlcat ( dj_hiddev -> phys , tmpstr , sizeof ( dj_hiddev -> phys ) ); 