RE: [PATCH] IIO-onwards: trigger: iio-trig-sysfs: Avoid double free.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jonathan Cameron wrote on 2011-04-15:
> On 04/15/11 13:29, michael.hennerich@xxxxxxxxxx wrote:
>> From: Michael Hennerich <michael.hennerich@xxxxxxxxxx>
>>
>>
> Good catch.
>
> Given I haven't 'officially' posted this lot yet, do you mind if I
> merge the fixes into the patch that caused the problem?
> (with crediting of course!)

No Problem - keep it simple.

> Could keep them separate but that will make for confusing reviewing
> once I haven't posted the patches.. (probably later today).
>
>> Signed-off-by: Michael Hennerich <michael.hennerich@xxxxxxxxxx>
>> ---
>>  drivers/staging/iio/trigger/iio-trig-sysfs.c |    1 -
>>  1 files changed, 0 insertions(+), 1 deletions(-)
>> diff --git a/drivers/staging/iio/trigger/iio-trig-sysfs.c
>> b/drivers/staging/iio/trigger/iio-trig-sysfs.c
>> index 5cd55ac..6d3dee3 100644
>> --- a/drivers/staging/iio/trigger/iio-trig-sysfs.c
>> +++ b/drivers/staging/iio/trigger/iio-trig-sysfs.c
>> @@ -134,7 +134,6 @@ static int iio_sysfs_trigger_probe(int id)
>>      t->id = id;     t->trig = iio_allocate_trigger_named(name);     if
>>  (!t->trig) { -              kfree(name);            ret = -ENOMEM;          goto free_t;    }

Greetings,
Michael

--
Analog Devices GmbH      Wilhelm-Wagenfeld-Str. 6      80807 Muenchen
Sitz der Gesellschaft: Muenchen; Registergericht: Muenchen HRB 40368; Geschaeftsfuehrer:Dr.Carsten Suckrow, Thomas Wessel, William A. Martin, Margaret Seif


--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux