[BUGs] must check return value of pci_map_single()/pci_map_page()

From: Marin Mitov <hidden>
Date: 2008-06-23 11:05:49
Also in: lkml

Hi all,

According to Documentation/DMA-mapping.txt one should
check the return value of pci_map_single()/pci_map_page()
using pci_dma_mapping_error(), but many drivers do not.
(I have checked in drivers/net/* for example).

Should we add __must_check in the definitions/declarations 
of these functions/macros "to force" the check?

Best regards

Marin Mitov
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help