Module Name: src Committed By: jmcneill Date: Tue Dec 5 19:13:53 UTC 2017
Modified Files: src/sys/external/bsd/drm2/drm: drm_drv.c Log Message: drm_stat: fix device minor calculation, ok riastradh@ To generate a diff of this commit: cvs rdiff -u -r1.19 -r1.20 src/sys/external/bsd/drm2/drm/drm_drv.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/external/bsd/drm2/drm/drm_drv.c diff -u src/sys/external/bsd/drm2/drm/drm_drv.c:1.19 src/sys/external/bsd/drm2/drm/drm_drv.c:1.20 --- src/sys/external/bsd/drm2/drm/drm_drv.c:1.19 Thu Nov 30 20:25:55 2017 +++ src/sys/external/bsd/drm2/drm/drm_drv.c Tue Dec 5 19:13:52 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: drm_drv.c,v 1.19 2017/11/30 20:25:55 christos Exp $ */ +/* $NetBSD: drm_drv.c,v 1.20 2017/12/05 19:13:52 jmcneill Exp $ */ /*- * Copyright (c) 2013 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: drm_drv.c,v 1.19 2017/11/30 20:25:55 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: drm_drv.c,v 1.20 2017/12/05 19:13:52 jmcneill Exp $"); #include <sys/param.h> #include <sys/types.h> @@ -586,7 +586,7 @@ drm_stat(struct file *fp, struct stat *s struct drm_file *const file = fp->f_data; struct drm_minor *const dminor = file->minor; const dev_t devno = makedev(cdevsw_lookup_major(&drm_cdevsw), - 64*dminor->index + dminor->type); + 64*dminor->type + dminor->index); (void)memset(st, 0, sizeof(*st));