소스 검색

asus_acpi: fix possible double free (found by Coverity)

Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Jesper Juhl 18 년 전
부모
커밋
de47b69c7b
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      drivers/acpi/asus_acpi.c

+ 1 - 0
drivers/acpi/asus_acpi.c

@@ -1192,6 +1192,7 @@ static int asus_hotk_get_info(void)
 			break;
 		default:
 			kfree(model);
+			model = NULL;
 			break;
 		}
 	}