]> err.no Git - linux-2.6/blobdiff - drivers/memstick/core/memstick.c
memstick: make sure number of command retries is exactly as specified
[linux-2.6] / drivers / memstick / core / memstick.c
index 3c97bac4e47bbc642f62006b615208a6179f3ec3..decd6a49fd5a4243a04eaf43621a73da5974e38f 100644 (file)
@@ -236,7 +236,7 @@ int memstick_next_req(struct memstick_host *host, struct memstick_request **mrq)
                rc = host->card->next_request(host->card, mrq);
 
        if (!rc)
-               host->retries = cmd_retries;
+               host->retries = cmd_retries > 1 ? cmd_retries - 1 : 1;
        else
                *mrq = NULL;