Commit b0e71240 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] request_firmware(): use del_timer_sync()

Avoid a possible timer deletion race.
parent 4b4447c9
......@@ -361,7 +361,7 @@ request_firmware(const struct firmware **firmware, const char *name,
wait_for_completion(&fw_priv->completion);
del_timer(&fw_priv->timeout);
del_timer_sync(&fw_priv->timeout);
fw_remove_class_device(class_dev);
if (fw_priv->fw->size && !fw_priv->abort) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment