Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/drm2/dist/drm/via CID 710492: dev_priv was ...



details:   https://anonhg.NetBSD.org/src/rev/018d9efe97d3
branches:  trunk
changeset: 808185:018d9efe97d3
user:      christos <christos%NetBSD.org@localhost>
date:      Sat May 09 13:19:22 2015 +0000

description:
CID 710492: dev_priv was dereferenced in via_release_futex, no point in
checking again.

diffstat:

 sys/external/bsd/drm2/dist/drm/via/via_mm.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r b74e32d1311e -r 018d9efe97d3 sys/external/bsd/drm2/dist/drm/via/via_mm.c
--- a/sys/external/bsd/drm2/dist/drm/via/via_mm.c       Sat May 09 13:16:42 2015 +0000
+++ b/sys/external/bsd/drm2/dist/drm/via/via_mm.c       Sat May 09 13:19:22 2015 +0000
@@ -79,7 +79,7 @@
 
        /* Linux specific until context tracking code gets ported to BSD */
        /* Last context, perform cleanup */
-       if (list_is_singular(&dev->ctxlist) && dev->dev_private) {
+       if (list_is_singular(&dev->ctxlist)) {
                DRM_DEBUG("Last Context\n");
                drm_irq_uninstall(dev);
                via_cleanup_futex(dev_priv);



Home | Main Index | Thread Index | Old Index