• Johannes Berg's avatar
    iwlagn: verify mutex held for sync commands · 98a648e1
    Johannes Berg authored
    Emmanuel noticed that there's no explicit checking
    that prevents the driver from attempting to issue
    multiple synchronous commands at the same time and
    wrote a patch to check. However, his patch warns
    only if a collision actually happened, an unlikely
    thing since the driver mutex should be held for
    synchronous command submissions.
    
    So instead of checking that a collision happened
    add a check that the mutex is held which ensures
    that collisions can't happen.
    Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
    Signed-off-by: default avatarWey-Yi Guy <wey-yi.w.guy@intel.com>
    98a648e1
iwl-hcmd.c 7.9 KB