mirror of
				https://github.com/DigitalDevices/dddvb.git
				synced 2025-03-01 10:35:23 +00:00 
			
		
		
		
	change pointer check order
This commit is contained in:
		| @@ -498,9 +498,9 @@ static int ddb_redirect(u32 i, u32 p) | ||||
| 	struct ddb *pdev = ddbs[(p >> 4) & 0x3f]; | ||||
| 	struct ddb_port *port; | ||||
|  | ||||
| 	if (!idev->has_dma || !pdev->has_dma) | ||||
| 	if (!pdev || !idev) | ||||
| 		return -EINVAL; | ||||
| 	if (!idev || !pdev) | ||||
| 	if (!pdev->has_dma || !idev->has_dma) | ||||
| 		return -EINVAL; | ||||
|  | ||||
| 	port = &pdev->port[p & 0x0f]; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user