Re: [PATCH] staging: greybus: timesync: validate platform state callback

2017-01-23 Thread Johan Hovold
On Mon, Jan 23, 2017 at 02:22:44PM +, Rui Miguel Silva wrote: > When tearingdown timesync, and not in arche platform, the state platform > callback is not initialized. That will trigger the following NULL > dereferencing. > CallTrace: > > ? gb_timesync_platform_unlock_bus+0x11/0x20 [greybus]

Re: [PATCH] staging: greybus: timesync: validate platform state callback

2017-01-23 Thread Rui Miguel Silva
Hi Johan, On Mon, Jan 23, 2017 at 04:28:08PM +0100, Johan Hovold wrote: On Mon, Jan 23, 2017 at 02:22:44PM +, Rui Miguel Silva wrote: When tearingdown timesync, and not in arche platform, the state platform callback is not initialized. That will trigger the following NULL dereferencing. Call