<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div>On Tue, 2024-02-20 at 15:58 -0600, Timur Tabi wrote:</div>
<blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex">
<pre>+static int add_registry(struct nvkm_gsp *gsp, const char *key,</pre>
<pre>+ enum registry_type type, const void *data, size_t length)</pre>
<pre>+{</pre>
<pre>+ struct registry_list_entry *reg;</pre>
<pre>+ size_t nlen = strlen(key) + 1;</pre>
<pre>+ size_t vlen; /* value length, non-zero if binary or string */</pre>
<pre>+</pre>
<pre>+ /* Set an arbitrary limit to avoid problems with broken command lines */</pre>
<pre>+ if (nlen > 64)</pre>
<pre>+ return -EFBIG;</pre>
</blockquote>
<div><br>
</div>
<div>Oops, I forgot to change this to -EINVAL.</div>
<div><span></span></div>
</body>
</html>