Project

General

Profile

Bug #1004

ddi_dma_mem_alloc() doesn't check 'accattrp' argument against NULL.

Added by Michael Tsymbalyuk over 8 years ago. Updated over 8 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
-
Start date:
2011-05-08
Due date:
% Done:

0%

Estimated time:
Difficulty:
Bite-size
Tags:
needs-triage

Description

ddi_dma_mem_alloc() doen't check its paratemer 'accattrp' against NULL before dereferencing, which leads to kernel panic.

History

#1

Updated by Rich Lowe over 8 years ago

A call to ddi_dma_mem_alloc(9F) with an invalid ddi_device_acc_attr(9S) is erroneous. panicking is the correct thing to be doing.

#2

Updated by Garrett D'Amore over 8 years ago

  • Status changed from New to Rejected

Uh, passing NULL here would be an indication of a gross driver programming bug here. Panic is the right thing to do here. I'm rejecting this bug.

Also available in: Atom PDF