[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87r3wex7t2.fsf@free.fr>
Date: Fri, 05 Dec 2014 19:36:41 +0100
From: Robert Jarzmik <robert.jarzmik@...e.fr>
To: Mika Westerberg <mika.westerberg@...ux.intel.com>
Cc: linux-spi@...r.kernel.org, Mark Brown <broonie@...nel.org>,
Daniel Mack <daniel@...que.org>,
Haojian Zhuang <haojian.zhuang@...il.com>,
Martin Oldfield <m@...ldfield.com>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] spi/pxa2xx: Clear cur_chip pointer before starting next message
Mika Westerberg <mika.westerberg@...ux.intel.com> writes:
> On Thu, Dec 04, 2014 at 10:01:06PM +0100, Robert Jarzmik wrote:
>> So with your change, we have :
>> drv_data->cur_chip = NULL;
>> spi_finalize_current_message(drv_data->master);
>>
>> In that case, if spi_finalize_current_message() queues another message, upon
>> this next message completion, won't giveback() be called, and dereference
>> cur_chip as well ?
>
> When the next message is started pxa2xx_spi_transfer_one_message() gets
> called and that will set cur_chip again.
Acked-by: Robert Jarzmik <robert.jarzmik@...e.fr>
Cheers.
--
Robert
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists