mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-05-06 03:38:03 +02:00
radeon: fix logic error
This commit is contained in:
parent
112ad16178
commit
ac88916eea
2 changed files with 2 additions and 2 deletions
|
|
@ -2460,7 +2460,7 @@ int r600_do_init_cp(struct drm_device * dev, drm_radeon_init_t * init)
|
|||
dev_priv->gart_info.addr,
|
||||
dev_priv->pcigart_offset);
|
||||
|
||||
if (!r600_page_table_init(dev)) {
|
||||
if (r600_page_table_init(dev)) {
|
||||
DRM_ERROR("Failed to init GART table\n");
|
||||
r600_do_cleanup_cp(dev);
|
||||
return -EINVAL;
|
||||
|
|
|
|||
|
|
@ -1403,7 +1403,7 @@ static int radeon_do_init_cp(struct drm_device * dev, drm_radeon_init_t * init)
|
|||
}
|
||||
|
||||
if ((dev_priv->flags & RADEON_FAMILY_MASK) == CHIP_RS600) {
|
||||
if (!r600_page_table_init(dev)) {
|
||||
if (r600_page_table_init(dev)) {
|
||||
DRM_ERROR("failed to init PCI GART!\n");
|
||||
radeon_do_cleanup_cp(dev);
|
||||
return -ENOMEM;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue