msm: adsprpc: Fix UAF in fastrpc_print_debug_data
In fastrpc_print_debug_data accessing fl will cause
UAF condition if is_ramdump_enable is not set. In this
case, there won't be any wait condition in fastrpc_file_free
so fl will be freed in between accessing data. To fix this,
check is_ramdump_enable before accessing fl data.
Signed-off-by: quic_anane <[email protected]>
Change-Id: Ia4670a73f887e17afae3cfeb7e6c6457b3337ae9