commit | f71fec47c2df704c7081f946d7e46fe036a4208b | [log] [tgz] |
---|---|---|
author | Jesper Dangaard Brouer <brouer@redhat.com> | Tue Jun 18 15:06:08 2019 +0200 |
committer | David S. Miller <davem@davemloft.net> | Wed Jun 19 11:23:13 2019 -0400 |
tree | 31644496760e3272d55f8248ef49eed16c32ec1d | |
parent | 32c28f7e413981c7dd4a3ad9bbb1151e4b654261 [diff] |
page_pool: make sure struct device is stable For DMA mapping use-case the page_pool keeps a pointer to the struct device, which is used in DMA map/unmap calls. For our in-flight handling, we also need to make sure that the struct device have not disappeared. This is assured via using get_device/put_device API. Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com> Reported-by: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org> Signed-off-by: David S. Miller <davem@davemloft.net>