diff options
author | Roland Dreier <rolandd@cisco.com> | 2008-10-10 15:58:52 -0700 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2008-10-10 15:58:52 -0700 |
commit | 2767840a5ca73fde62b25e0209aa9269ec4fa7c7 (patch) | |
tree | ffa319b849854af05f1b8a0e46191386ab6cec4a /ipc/shm.c | |
parent | f6bccf695431da0e9bd773550ae91b8cb9ffb227 (diff) |
IPoIB: Always initialize poll_timer to avoid crash on unload
ipoib_ib_dev_stop() does del_timer_sync(&priv->poll_timer), but if a
P_key for an interface is not found, poll_timer is not initialized, so
this leads to a crash or hang. Fix this by moving where poll_timer is
initialized to ipoib_ib_dev_init(), which is always called.
This fixes <https://bugs.openfabrics.org/show_bug.cgi?id=1172>.
Debugged-by: Yosef Etigin <yosefe@voltaire.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'ipc/shm.c')
0 files changed, 0 insertions, 0 deletions