[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20120910212804.30342e41@stein>
Date: Mon, 10 Sep 2012 21:28:04 +0200
From: Stefan Richter <stefanr@...6.in-berlin.de>
To: Clemens Ladisch <clemens@...isch.de>
Cc: shuah.khan@...com, LKML <linux-kernel@...r.kernel.org>,
linux1394-devel@...ts.sf.net, shuahkhan@...il.com
Subject: Re: [RFC] DMA mapping error check analysis
On Sep 10 Clemens Ladisch wrote:
> fw_iso_buffer_map_dma() maps as many pages as it can, and saves in
> ->page_count_mapped how many pages need unmapping.
>
> When fw_iso_buffer_map_dma() fails, ioctl_create_iso_context() does _not_
> call fw_iso_buffer_destroy() but takes care to not change the cdev's
> state in any other way. So ioctl_create_iso_context() can be called
> again and will then call fw_iso_buffer_map_dma(), which will happily
> map the pages a second time, overwriting the previous mapped addresses.
Indeed; thank you. I make a note to fix this when I get some time.
--
Stefan Richter
-=====-===-- =--= -=-=-
http://arcgraph.de/sr/
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists