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

2017-01-23 Thread Viresh Kumar
On 23-01-17, 16:32, 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] > gb_timesync_teardow

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

2017-01-23 Thread Johan Hovold
On Mon, Jan 23, 2017 at 04:32:57PM +, 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]

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

2017-01-23 Thread Rui Miguel Silva
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] gb_timesync_teardown+0x85/0xc0 [greybus] gb_timesync_svc_remove+0xab/0x190 [