From 39b1d678e7dd8bf56a2abfdef07933b69666ce2c Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Fri, 20 Jan 2017 16:16:00 +0300 Subject: [PATCH] db/fixup_kernel.sh: write to the temporary DB instead of the current one When we're creating the DB, we first write to a new DB then copy it over the DB we use. This was updating stuff in the current DB instead of the new one. Signed-off-by: Dan Carpenter --- smatch_data/db/fixup_kernel.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smatch_data/db/fixup_kernel.sh b/smatch_data/db/fixup_kernel.sh index 79f5376f..d1b7f78e 100755 --- a/smatch_data/db/fixup_kernel.sh +++ b/smatch_data/db/fixup_kernel.sh @@ -172,7 +172,7 @@ echo "select distinct file, function from function_ptr where ptr='(struct rtl_ha echo "update caller_info set function = '$drv (struct rtl_hal_ops)->set_hw_reg' where function = '(struct rtl_hal_ops)->set_hw_reg' and file like 'drivers/net/wireless/rtlwifi/$drv/%';" \ - | sqlite3 smatch_db.sqlite + | sqlite3 $db_file echo "insert into function_ptr values ('$file', '$function', '$drv (struct rtl_hal_ops)->set_hw_reg', 1);" \ | sqlite3 $db_file -- 2.11.4.GIT