lkml.org 
[lkml]   [2015]   [Sep]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] spi: spidev: fix possible NULL dereference
On Fri, Sep 11, 2015 at 03:11:32PM +0300, Jarkko Nikula wrote:

> Actually this fixes a *real* NULL dereference case but it is not related to
> normal open/close life cycle of spidev. It requires that spidev is kept open
> when SPI master is removed.

> spidev->spi is set to NULL in spidev_remove() and it is called before
> spidev_release() in case master is removed while spidev is in use

> It would be good to update this to commit log, add a tag below and Cc
> <stable@vger.kernel.org>

> Fixes: 9169051617df ("spi: spidev: Don't mangle max_speed_hz in underlying
> spi device")

The patch was already applied :(
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2015-09-11 14:41    [W:0.367 / U:0.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site