Skip to contentSkip to conversation

habanalabs: update patched_cb_size for Wreg32

PATCH New Oded Gabbay 1 participant 1 message May 17, 2020 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 habanalabs: update patched_cb_size for Wreg32

From: Rachel Stahl <[email protected]>

The patch_cb_size is not updated for Wreg32 in its validate function, so updated in goya_validate_cb.

---
 drivers/misc/habanalabs/goya/goya.c | 1 +
 1 file changed, 1 insertion(+)
drivers/misc/habanalabs/goya/goya.c +1 -0
index 56f415f9120a..15b6c3228e37 100644
@@ -3394,6 +3394,7 @@ static int goya_validate_cb(struct hl_device *hdev,
 			 */
 			rc = goya_validate_wreg32(hdev,
 				parser, (struct packet_wreg32 *) user_pkt);
+			parser->patched_cb_size += pkt_size;
 			break;
 
 		case PACKET_WREG_BULK:
Signature · 1 line
2.17.1