[PATCH] [v4] nouveau: add command-line GSP-RM registry support

Timur Tabi ttabi at nvidia.com
Tue Feb 20 22:02:25 UTC 2024


On Tue, 2024-02-20 at 15:58 -0600, Timur Tabi wrote:

+static int add_registry(struct nvkm_gsp *gsp, const char *key,

+                       enum registry_type type, const void *data, size_t length)

+{

+       struct registry_list_entry *reg;

+       size_t nlen = strlen(key) + 1;

+       size_t vlen; /* value length, non-zero if binary or string */

+

+       /* Set an arbitrary limit to avoid problems with broken command lines */

+       if (nlen > 64)

+               return -EFBIG;

Oops, I forgot to change this to -EINVAL.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/nouveau/attachments/20240220/82bff409/attachment.htm>


More information about the Nouveau mailing list