[PATCH] correct sys_shmget allocation check