Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1460561 > unrolled thread

Re: [PATCH v5 1/2] Use kmap_atomic when rewriting attached page

Started byChristoph Hellwig <hch@lst.de>
First post2016-08-11 16:20 +0200
Last post2016-08-11 16:20 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH v5 1/2] Use kmap_atomic when rewriting attached page Christoph Hellwig <hch@lst.de> - 2016-08-11 16:20 +0200

#1460561 — Re: [PATCH v5 1/2] Use kmap_atomic when rewriting attached page

FromChristoph Hellwig <hch@lst.de>
Date2016-08-11 16:20 +0200
SubjectRe: [PATCH v5 1/2] Use kmap_atomic when rewriting attached page
Message-ID<s4YZX-4Uf-19@gated-at.bofh.it>
> +static unsigned int ata_format_dsm_trim_descr(struct scatterlist *sg, u32 num,
> +					      u64 sector, u32 count)
> +{
> +	void *ptr = kmap_atomic(sg_page(sg));


Please use sg_copy_from_buffer to be safe against all corner cases.

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web