diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2020-05-20 14:00:19 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-05-21 10:58:46 +0200 |
commit | e420637b81f78d0fbacf539bdb1b341eba602aea (patch) | |
tree | 01a130af1e189fa293284faa5e481478f2e0ade1 /sound/synth | |
parent | fpga: dfl: afu: Corrected error handling levels (diff) | |
download | linux-e420637b81f78d0fbacf539bdb1b341eba602aea.tar.xz linux-e420637b81f78d0fbacf539bdb1b341eba602aea.zip |
w1_therm: Free the correct variable
The problem is that we change "p_args" to point to the middle of the
string so when we free it at the end of the function it's not freeing
the same pointer that we originally allocated.
Fixes: e2c94d6f5720 ("w1_therm: adding alarm sysfs entry")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20200520120019.GA172354@mwanda
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'sound/synth')
0 files changed, 0 insertions, 0 deletions