mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 09:04:39 +02:00
drm/xe/guc: Fix wrong assert about full_len
This variable holds full length of the message, including header length so it should be checked against GUC_CTB_MSG_MAX_LEN. Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com> Reviewed-by: Matthew Brost <matthew.brost@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
This commit is contained in:
parent
32dd40fb48
commit
4a9b7d29c1
|
|
@ -419,7 +419,7 @@ static int h2g_write(struct xe_guc_ct *ct, const u32 *action, u32 len,
|
|||
full_len = len + GUC_CTB_HDR_LEN;
|
||||
|
||||
lockdep_assert_held(&ct->lock);
|
||||
xe_assert(xe, full_len <= (GUC_CTB_MSG_MAX_LEN - GUC_CTB_HDR_LEN));
|
||||
xe_assert(xe, full_len <= GUC_CTB_MSG_MAX_LEN);
|
||||
xe_assert(xe, tail <= h2g->info.size);
|
||||
|
||||
/* Command will wrap, zero fill (NOPs), return and check credits again */
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user