cpufreq: interactive: fix crash on error paths in get_tokenized_data
authorTodd Poynor <toddpoynor@google.com>
Wed, 20 Mar 2013 22:40:46 +0000 (15:40 -0700)
committerArve Hjønnevåg <arve@android.com>
Mon, 1 Jul 2013 21:16:23 +0000 (14:16 -0700)
commiteb58ca7afd0cc9736f4e13acb488c0273d060077
tree749d663b8a3eb6330c416eb67534167bc814b1c0
parentfb117edf60e2c1e58f28859387d8bf2669a66907
cpufreq: interactive: fix crash on error paths in get_tokenized_data

Use separate variable for error code, free proper pointer.

Change-Id: Ia83cccb195997789ac6afbf5b8761f7b278196d6
Reported-by: Arve Hjønnevåg <arve@android.com>
Signed-off-by: Todd Poynor <toddpoynor@google.com>
drivers/cpufreq/cpufreq_interactive.c