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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]<

 



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.

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux