Re: [PATCH] block: blk-exec.c: Cleaning up local variable address returnd

From: Jens Axboe
Date: Sun Jun 08 2014 - 21:50:51 EST


On 2014-06-06 16:37, Rickard Strandqvist wrote:
Address of local variable assigned to a function parameter

This was partly found using a static code analysis program called cppcheck.

I'd be surprised if this was a real bug, but I agree on principle, we should not leak stack data. The code is in place since for drivers that rely on sense always being available. I will apply, thanks.

--
Jens Axboe

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/