Skip to content
Commit 203c8018 authored by Ben Collins's avatar Ben Collins Committed by Linus Torvalds
Browse files

mmc: Fix crash in mmc_block on 64-bit



Fairly simple. "dev_use" was being allocated as a zero length array
because of bad math on 64-bit systems, causing a crash in
find_first_zero_bit(). One-liner follows:

Signed-off-by: default avatarBen Collins <ben.collins@canonical.com>
Acked-by: default avatarPierre Ossman <drzeus@drzeus.cx>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent b2ab26ab
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