[lkml]   [2016]   [Apr]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH V2 08/15] coresight: tmc: getting the right read_count on tmc_open()
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 <>

Reviewed-by: Suzuki K Poulose <>

 \ /
  Last update: 2016-04-19 15:21    [W:0.295 / U:0.616 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site