[PATCH V2 08/15] coresight: tmc: getting the right read_count on tmc_open()

Suzuki K Poulose Suzuki.Poulose at arm.com
Tue Apr 19 06:07:08 PDT 2016

On 12/04/16 18:54, Mathieu Poirier wrote:
> In function tmc_open(), if tmc_read_prepare() fails variable
> drvdata->read_count is not decremented, causing unwanted
> access to drvdata->buf and very likely, a crash dump.
> By moving the incrementation to a place where we know things
> are stable this kind of situation is avoided.
> Signed-off-by: Mathieu Poirier <mathieu.poirier at linaro.org>

Reviewed-by: Suzuki K Poulose <suzuki.poulose at arm.com>

More information about the linux-arm-kernel mailing list