projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f45c40a
)
block: blk-exec.c: Cleaning up local variable address returnd
author
Rickard Strandqvist
<rickard_strandqvist@spectrumdigital.se>
Fri, 6 Jun 2014 22:37:26 +0000
(
00:37
+0200)
committer
Jens Axboe
<axboe@fb.com>
Mon, 9 Jun 2014 01:51:31 +0000
(19:51 -0600)
Address of local variable assigned to a function parameter
This was partly found using a static code analysis program called cppcheck.
Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-exec.c
patch
|
blob
|
blame
|
history
diff --git
a/block/blk-exec.c
b/block/blk-exec.c
index dbf4502b1d6779eadd1573f28f75def4e26a031a..f4d27b12c90b2778182cc3c0cf5a6cd09e2b0310 100644
(file)
--- a/
block/blk-exec.c
+++ b/
block/blk-exec.c
@@
-132,6
+132,11
@@
int blk_execute_rq(struct request_queue *q, struct gendisk *bd_disk,
if (rq->errors)
err = -EIO;
+ if (rq->sense == sense) {
+ rq->sense = NULL;
+ rq->sense_len = 0;
+ }
+
return err;
}
EXPORT_SYMBOL(blk_execute_rq);