projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
761a15e
)
pktcdvd: don't rely on bio_init() preserving bio->bi_destructor
author
Laurent Riffard
<laurent.riffard@free.fr>
Fri, 21 Sep 2007 06:32:28 +0000
(08:32 +0200)
committer
Jens Axboe
<jens.axboe@oracle.com>
Tue, 16 Oct 2007 09:05:09 +0000
(11:05 +0200)
Signed-off-by: Laurent Riffard <laurent.riffard@free.fr>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
drivers/block/pktcdvd.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/block/pktcdvd.c
b/drivers/block/pktcdvd.c
index ba2f550963bc3e16ffd8159b619ec16aa2c44214..a8130a4ad6d4329572b722b2947059db776fa8e2 100644
(file)
--- a/
drivers/block/pktcdvd.c
+++ b/
drivers/block/pktcdvd.c
@@
-1147,6
+1147,7
@@
static void pkt_gather_data(struct pktcdvd_device *pd, struct packet_data *pkt)
bio->bi_end_io = pkt_end_io_read;
bio->bi_private = pkt;
bio->bi_io_vec = vec;
+ bio->bi_destructor = pkt_bio_destructor;
p = (f * CD_FRAMESIZE) / PAGE_SIZE;
offset = (f * CD_FRAMESIZE) % PAGE_SIZE;
@@
-1444,6
+1445,7
@@
static void pkt_start_write(struct pktcdvd_device *pd, struct packet_data *pkt)
pkt->w_bio->bi_end_io = pkt_end_io_packet_write;
pkt->w_bio->bi_private = pkt;
pkt->w_bio->bi_io_vec = bvec;
+ pkt->w_bio->bi_destructor = pkt_bio_destructor;
for (f = 0; f < pkt->frames; f++)
if (!bio_add_page(pkt->w_bio, bvec[f].bv_page, CD_FRAMESIZE, bvec[f].bv_offset))
BUG();