mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 09:36:22 +02:00
drm/hyperv: use VMBUS_RING_SIZE()
VMBUS ring buffers must be page aligned. So, use VMBUS_RING_SIZE() to
ensure they are always aligned and large enough to hold all of the
relevant data.
Cc: stable@kernel.vger.org
Fixes: 76c56a5aff ("drm/hyperv: Add DRM driver for hyperv synthetic video device")
Signed-off-by: Hamza Mahfooz <hamzamahfooz@linux.microsoft.com>
Reviewed-by: Saurabh Sengar <ssengar@linux.microsoft.com>
Link: https://patch.msgid.link/20260425181719.1538483-2-hamzamahfooz@linux.microsoft.com
This commit is contained in:
parent
e3953ff665
commit
241061119a
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
#include "hyperv_drm.h"
|
||||
|
||||
#define VMBUS_RING_BUFSIZE (256 * 1024)
|
||||
#define VMBUS_RING_BUFSIZE VMBUS_RING_SIZE(256 * 1024)
|
||||
#define VMBUS_VSP_TIMEOUT (10 * HZ)
|
||||
|
||||
#define SYNTHVID_VERSION(major, minor) ((minor) << 16 | (major))
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user