diff options
author | Alexey Klimov <[email protected]> | 2017-03-21 16:57:34 +0000 |
---|---|---|
committer | Jassi Brar <[email protected]> | 2017-03-28 23:52:02 +0530 |
commit | 4605fff00b886657835a58ef3cf2377356029e55 (patch) | |
tree | f98454c954b19a104dff9c87dacac3e35711c0f2 /net/unix/af_unix.c | |
parent | dd32fae0722ddd1235342a4b0c00f91a14b2742c (diff) |
mailbox: check ->last_tx_done for NULL in case of timer-based polling
It is allowed by code to register mailbox controller that sets txdone_poll
flag to request timer-based polling with missed ->last_tx_done() method.
If such thing happens and since presence of last_tx_done() is not checked
it will fail in hrtimer callback function txdone_hrtimer() when first
message will be transmitted.
This patch adds check for this method and logging of error on
registration of mailbox controller if it requested timer-based polling.
Signed-off-by: Alexey Klimov <[email protected]>
Acked-by: Sudeep Holla <[email protected]>
Signed-off-by: Jassi Brar <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions