mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 22:40:54 -04:00
Staging: hv: vmbus: Check before invoking the channel callback
When we close a channel, we set the corresponding callback function to NULL. Check before invoking the channel callback. Signed-off-by: K. Y. Srinivasan <kys@microsoft.com> Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
95ff7cde91
commit
76c39d429d
1 changed files with 1 additions and 1 deletions
|
|
@ -222,7 +222,7 @@ static void process_chn_event(u32 relid)
|
|||
*/
|
||||
channel = relid2channel(relid);
|
||||
|
||||
if (channel) {
|
||||
if (channel && (channel->onchannel_callback != NULL)) {
|
||||
channel->onchannel_callback(channel->channel_callback_context);
|
||||
} else {
|
||||
pr_err("channel not found for relid - %u\n", relid);
|
||||
|
|
|
|||
Loading…
Reference in a new issue