From mboxrd@z Thu Jan 1 00:00:00 1970 From: Claude Code Review Bot To: dri-devel-reviews@example.com Subject: Claude review: misc: fastrpc: Allow fastrpc_buf_free() to accept NULL Date: Sun, 12 Apr 2026 11:44:34 +1000 Message-ID: In-Reply-To: <20260409062617.1182-5-jianping.li@oss.qualcomm.com> References: <20260409062617.1182-1-jianping.li@oss.qualcomm.com> <20260409062617.1182-5-jianping.li@oss.qualcomm.com> X-Mailer: Claude Code Patch Reviewer Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Patch Review **Verdict: Clean, correct.** This follows the standard kernel pattern (like `kfree`, `vfree`, etc.) of m= aking free functions accept NULL: ```c static void fastrpc_buf_free(struct fastrpc_buf *buf) { if (!buf) return; // ... } ``` The two callsite simplifications (`fastrpc_context_free` and `fastrpc_devic= e_release`) are straightforward and correct. No functional change. Note that this patch does **not** help with Patch 3's bugs =E2=80=94 the is= sue there is calling `fastrpc_buf_free` on a non-NULL but improperly initia= lized `fastrpc_buf`, not passing NULL. --- Generated by Claude Code Patch Reviewer