Project

General

Profile

Bug #7000

gfxp_umem_cookie_init() does wrong cast on return

Added by Toomas Soome over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
kernel
Start date:
2016-05-26
Due date:
% Done:

100%

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

Description

The gfxp_umem_cookie_init() in usr/src/uts/i86pc/io/gfx_private/gfxp_devmap.c is defined to return ddi_umem_cookie_t but instead:

return ((ddi_umem_cookie_t *)umem_cookie);

#1

Updated by Electric Monk over 4 years ago

  • Status changed from New to Closed
  • % Done changed from 90 to 100

git commit 058c4bb45994ad954199a7e36d99b487725043ad

commit  058c4bb45994ad954199a7e36d99b487725043ad
Author: Toomas Soome <tsoome@me.com>
Date:   2016-05-27T15:52:19.000Z

    7000 gfxp_umem_cookie_init() does wrong cast on return
    Reviewed by: Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org>
    Reviewed by: Richard PALO <richard@netbsd.org>
    Approved by: Richard Lowe <richlowe@richlowe.net>

Also available in: Atom PDF