PD#SWPL-3107
Problem:
r311 autoreboot wifi panic
Solution:
fix the null pointer issue
Verify:
r311
Change-Id: I9f15fe6badb709448c53731fc97d74364a13bd03
Signed-off-by: Rongjun Chen <rongjun.chen@amlogic.com>
if (nv_image)
dhd_os_close_image(nv_image);
+ nv_image = NULL;
+
/* For Get first block of fw to calculate total_len */
file_exists = ((pfw_path != NULL) && (pfw_path[0] != '\0'));
if (file_exists) {
void
dhd_os_close_image(void *image)
{
- struct file *filp = image;
-
- if (filp && filp->f_op)
- filp_close(filp, NULL);
+ if (image)
+ filp_close((struct file *)image, NULL);
}
void