Skip to content

Commit b4a49b1

Browse files
Krzysztof-Htorvalds
authored andcommitted
tdfxfb: fix frame buffer name overrun
If there are more then one graphics card handled by the tdfxfb driver the name of the frame buffer overruns reserved size. Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl> Cc: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent bf6910c commit b4a49b1

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

‎drivers/video/tdfxfb.c‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ static inline int mtrr_del(int reg, unsigned long base,
9595
#define VOODOO5_MAX_PIXCLOCK 350000
9696

9797
static struct fb_fix_screeninfo tdfx_fix __devinitdata = {
98-
.id = "3Dfx",
9998
.type = FB_TYPE_PACKED_PIXELS,
10099
.visual = FB_VISUAL_PSEUDOCOLOR,
101100
.ypanstep = 1,
@@ -1200,15 +1199,15 @@ static int __devinit tdfxfb_probe(struct pci_dev *pdev,
12001199
/* Configure the default fb_fix_screeninfo first */
12011200
switch (pdev->device) {
12021201
case PCI_DEVICE_ID_3DFX_BANSHEE:
1203-
strcat(tdfx_fix.id, " Banshee");
1202+
strcpy(tdfx_fix.id, "3Dfx Banshee");
12041203
default_par->max_pixclock = BANSHEE_MAX_PIXCLOCK;
12051204
break;
12061205
case PCI_DEVICE_ID_3DFX_VOODOO3:
1207-
strcat(tdfx_fix.id, " Voodoo3");
1206+
strcpy(tdfx_fix.id, "3Dfx Voodoo3");
12081207
default_par->max_pixclock = VOODOO3_MAX_PIXCLOCK;
12091208
break;
12101209
case PCI_DEVICE_ID_3DFX_VOODOO5:
1211-
strcat(tdfx_fix.id, " Voodoo5");
1210+
strcpy(tdfx_fix.id, "3Dfx Voodoo5");
12121211
default_par->max_pixclock = VOODOO5_MAX_PIXCLOCK;
12131212
break;
12141213
}

0 commit comments

Comments
 (0)