Project

General

Profile

Actions

Bug #1004

closed

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

Added by Michael Tsymbalyuk about 12 years ago. Updated about 12 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
Gerrit CR:
External Bug:

Description

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

Actions #1

Updated by Rich Lowe about 12 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.

Actions #2

Updated by Garrett D'Amore about 12 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.

Actions

Also available in: Atom PDF