[PATCH] genl: Fix casting error