Re: [PATCH] tpm: fix potential NULL pointer access in tpm_del_char_device()

From: Jason Gunthorpe
Date: Fri Sep 24 2021 - 09:35:02 EST


On Fri, Sep 24, 2021 at 03:29:46PM +0200, Lino Sanfilippo wrote:

> So this bug is triggered when the bcm2835 drivers shutdown() function is called since this
> driver does something quite unusual: it unregisters the spi controller in its shutdown()
> handler.

This seems wrong

Jason