nouveau: A char is signed, so it may overflow for >NV50.
parent
18952a1670
commit
20928a2f2b
|
@ -405,7 +405,7 @@ int nouveau_load(struct drm_device *dev, unsigned long flags)
|
|||
struct drm_nouveau_private *dev_priv;
|
||||
void __iomem *regs;
|
||||
uint32_t reg0;
|
||||
char architecture = 0;
|
||||
uint8_t architecture = 0;
|
||||
|
||||
dev_priv = drm_calloc(1, sizeof(*dev_priv), DRM_MEM_DRIVER);
|
||||
if (!dev_priv)
|
||||
|
|
Loading…
Reference in New Issue